浏览代码

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

Cathy Nguyen 3 年之前
父节点
当前提交
6133a0bc3e
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      tama_p1.c

+ 8 - 0
tama_p1.c

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