Factor comment

This commit is contained in:
Patrick Pelissier committed 2019-05-18 11:17:14 +02:00
1 parent 3f03615ed2
commit f2fffb9219
1 file changed
+1 -2
+1 -2
View File
@@ -249,8 +249,7 @@ m_serial_json_read_float(m_serial_read_t serial, long double *r, const size_t si
static inline m_serial_return_code_t
m_serial_json_read_string(m_serial_read_t serial, struct string_s *s){
FILE *f = (FILE*) serial->data[0];
// NOTE: string_in_str doesnt parse space characters before the \"... Is it needed?
fscanf(f, " ");
fscanf(f, " "); // Skip any leading spaces.
return string_in_str(s, f) ? M_SERIAL_OK_DONE : M_SERIAL_FAIL;
}