altos: Make cmd number parsing functions return value
[fw/altos] / src / drivers / ao_gps_ublox.c
index f5268aa7c7cee3d47f99ea66e0299c142f6ded02..a6d930835baed49a70d619073b84349242b0a806 100644 (file)
@@ -783,12 +783,12 @@ ao_gps(void)
 #if AO_UBLOX_DEBUG
 static void ao_gps_option(void)
 {
-       ao_cmd_hex();
+       uint16_t r = ao_cmd_hex();
        if (ao_cmd_status != ao_cmd_success) {
                ao_cmd_status = ao_cmd_success;
                ao_gps_show();
        } else {
-               ao_gps_dbg_enable = ao_cmd_lex_i;
+               ao_gps_dbg_enable = r;
                printf ("gps debug set to %d\n", ao_gps_dbg_enable);
        }
 }