Quellcode durchsuchen

Return to 1x speed with the back button, bug fixes

Cathy Nguyen vor 3 Jahren
Ursprung
Commit
6133a0bc3e
1 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  1. 8 0
      tama_p1.c

+ 8 - 0
tama_p1.c

@@ -686,6 +686,10 @@ int32_t tama_p1_app(void* p) {
                             } else if(
                             } else if(
                                 event.input.key == InputKeyBack &&
                                 event.input.key == InputKeyBack &&
                                 event.input.type == InputTypePress) {
                                 event.input.type == InputTypePress) {
+                                if(speed != 1) {
+                                    speed = 1;
+                                    tamalib_set_speed(speed);
+                                }
                                 tama_p1_save_state();
                                 tama_p1_save_state();
                             }
                             }
                         }
                         }
@@ -694,6 +698,10 @@ int32_t tama_p1_app(void* p) {
 
 
                 if(event.input.key == InputKeyBack && event.input.type == InputTypeLong &&
                 if(event.input.key == InputKeyBack && event.input.type == InputTypeLong &&
                    !in_menu) {
                    !in_menu) {
+                    if(speed != 1) {
+                        speed = 1;
+                        tamalib_set_speed(speed);
+                    }
                     furi_timer_stop(timer);
                     furi_timer_stop(timer);
                     running = false;
                     running = false;
                     tama_p1_save_state();
                     tama_p1_save_state();