mirror of
https://github.com/synthetos/g2.git
synced 2026-10-08 04:52:52 +08:00
020.09 Alignment changes to json_parser; changed strtod to strtof in various places
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user