cleaned up handling of number parsing in settings_execute_command

This commit is contained in:
Simen Svale Skogsrud
2011-02-18 23:08:06 +01:00
parent 6edbbe322c
commit 6be195ba38
3 changed files with 11 additions and 4 deletions

View File

@ -9,10 +9,10 @@ int read_double(char *line, uint8_t *char_counter, double *double_ptr)
*double_ptr = strtod(start, &end);
if(end == start) {
return(0);
return(false);
};
*char_counter = end - line;
return(1);
return(true);
}