altos: Make cmd number parsing functions return value
[fw/altos] / src / kernel / ao_log.c
index 1119cce41f6aeb7378427e400b5dafb871484734..fac211cf32549362b8380f55739c2b2e29a07565 100644 (file)
@@ -437,10 +437,9 @@ ao_log_delete(void)
                cmd_flight = -1;
                ao_cmd_lex();
        }
-       ao_cmd_decimal();
+       cmd_flight *= ao_cmd_decimal();
        if (ao_cmd_status != ao_cmd_success)
                return;
-       cmd_flight *= (int16_t) ao_cmd_lex_i;
 
        slots = ao_log_slots();
        /* Look for the flight log matching the requested flight */