Просмотр исходного кода

Count Down Timer: Fix < 1 sec crash for good

Willy-JL 1 год назад
Родитель
Сommit
6c1142aee2
2 измененных файлов с 1 добавлено и 2 удалено
  1. 1 1
      cntdown_timer/views/countdown_view.c
  2. 0 1
      esubghz_chat/esubghz_chat_i.h

+ 1 - 1
cntdown_timer/views/countdown_view.c

@@ -222,7 +222,7 @@ static void handle_time_setting_updown(CountDownTimView* cdv, CountDownViewCmd c
                 break;
             }
 
-            if(count < 0) {
+            if(count <= 0) {
                 count = 1;
             }
 

+ 0 - 1
esubghz_chat/esubghz_chat_i.h

@@ -11,7 +11,6 @@
 #include <gui/modules/text_box.h>
 #include <gui/modules/text_input.h>
 #include <notification/notification_messages.h>
-// #include <lib/nfc/nfc_worker.h>
 #include <lib/subghz/subghz_tx_rx_worker.h>
 #include <mbedtls/sha256.h>