fixed bugs

This commit is contained in:
2023-11-28 11:19:23 +03:00
parent 0c8908b52b
commit e6fb720604
4 changed files with 11 additions and 12 deletions

View File

@@ -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;
}