application: Fix indentation broken by previous changeset.
authorTilman Sauerbeck <tilman@code-monkey.de>
Sun, 22 Mar 2020 14:43:08 +0000 (15:43 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 22 Mar 2020 16:35:57 +0000 (17:35 +0100)
src/application/main.rs

index 5ec2f96b7c98dc7d87d9f5d01adfee0b8b91e247..4fa0c96513e974bab1d0f31e29b414dd524213cd 100644 (file)
@@ -313,15 +313,15 @@ pub unsafe extern "C" fn _start() -> ! {
         shell.update(&mut logger);
 
         if pta12.has_been_held_for_ms(1500) {
-                is_recording = !is_recording;
+            is_recording = !is_recording;
 
-                if is_recording {
-                    logger.start_recording(&prev_tap);
-                } else {
-                    logger.stop_recording(&prev_tap);
-                }
+            if is_recording {
+                logger.start_recording(&prev_tap);
+            } else {
+                logger.stop_recording(&prev_tap);
+            }
 
-                total_distance_cm = 0;
+            total_distance_cm = 0;
         }
 
         if reset_requested() {