0w0mewo 1 rok temu
rodzic
commit
ef535bc3e2
2 zmienionych plików z 3 dodań i 5 usunięć
  1. 1 1
      utils/utils.c
  2. 2 4
      views/countdown_view.c

+ 1 - 1
utils/utils.c

@@ -56,7 +56,7 @@ void notification_off() {
 }
 
 void notification_timeup() {
-    notification_message(furi_record_open(RECORD_NOTIFICATION), &sequence_audiovisual_alert);
+    notification_message(furi_record_open(RECORD_NOTIFICATION), &sequence_timeup);
 }
 
 void parse_sec_to_time_str(char* buffer, size_t len, int32_t sec) {

+ 2 - 4
views/countdown_view.c

@@ -93,7 +93,7 @@ static void countdown_timer_view_on_draw(Canvas* canvas, void* ctx) {
     char buffer[64];
 
     int32_t count = model->count;
-    int32_t expected_count = MAX(model->saved_count_setting, 1);
+    int32_t expected_count = model->saved_count_setting;
 
     CountDownViewSelect select = model->select;
 
@@ -219,9 +219,7 @@ static void handle_time_setting_updown(CountDownTimView* cdv, CountDownViewCmd c
                 break;
             }
 
-            if(count <= 0) {
-                count = 1;
-            }
+            count = MAX(count, 1);
 
             // update count state
             model->count = count;