020.09 Alignment changes to json_parser; changed strtod to strtof in various places

This commit is contained in:
aldenhart
2013-10-10 12:35:22 -04:00
parent 2fd56f8aa8
commit cec71ff7b8
6 changed files with 183 additions and 205 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ static stat_t _get_next_gcode_word(char **pstr, char *letter, float *value)
// get-value general case
char *end;
*value = strtod(*pstr, &end);
*value = strtof(*pstr, &end);
if(end == *pstr) { return(STAT_BAD_NUMBER_FORMAT); } // more robust test then checking for value=0;
*pstr = end;
return (STAT_OK); // pointer points to next character after the word