mirror of
https://github.com/eddyem/small_tel.git
synced 2026-03-20 00:31:00 +03:00
fixed bugs
This commit is contained in:
@@ -120,10 +120,11 @@ static int parseans(char *str, weather_t *w){
|
||||
str += el->parlen;
|
||||
char *endptr;
|
||||
*el->weatherpar = strtod(str, &endptr);
|
||||
//DBG("found par: %s, val=%g", el->parname, *el->weatherpar);
|
||||
DBG("found par: %s, val=%g", el->parname, *el->weatherpar);
|
||||
if(endptr == str){
|
||||
DBG("Wrong double value");
|
||||
return FALSE;
|
||||
*el->weatherpar = 0.;
|
||||
//return FALSE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user