ao_log: Change flight type to uint16_t, widen APIs dealing with flight numbers to...
[fw/altos] / src / kernel / ao_tracker.c
index b7e634656285a2b823c9ff6cb088fbe4c81c5736..8cf797e966b42a8c98f62cbb71c0c919dbe579f7 100644 (file)
@@ -186,9 +186,9 @@ ao_gps_lock(void)
 static uint8_t erasing_current;
 
 void
-ao_tracker_erase_start(uint16_t flight)
+ao_tracker_erase_start(int32_t flight)
 {
-       erasing_current = flight == ao_flight_number;
+       erasing_current = flight == (int32_t) ao_flight_number;
        if (erasing_current) {
                ao_mutex_get(&tracker_mutex);
                ao_log_stop();