application: Only reset the model when starting a new recording.
[gps-watch.git] / src / application / main.rs
index 6e8d37dccdd282a5f6cddae15936864c28277ae2..95a60dad6d266560a86e045b45f2175020346ebc 100644 (file)
@@ -334,14 +334,14 @@ pub unsafe extern "C" fn _start() -> ! {
             if is_recording {
                 logger.start_recording(&prev_tap);
 
+                model.reset();
+
                 view = View::Distance;
             } else {
                 logger.stop_recording(&prev_tap);
 
                 view = View::Time;
             }
-
-            model.reset();
         }
 
         let new_view = if pte24.has_been_held_for_ms(250) {