Parcourir la source

Minor changes.

0w0mewo il y a 1 an
Parent
commit
ef535bc3e2
2 fichiers modifiés avec 3 ajouts et 5 suppressions
  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() {
 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) {
 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];
     char buffer[64];
 
 
     int32_t count = model->count;
     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;
     CountDownViewSelect select = model->select;
 
 
@@ -219,9 +219,7 @@ static void handle_time_setting_updown(CountDownTimView* cdv, CountDownViewCmd c
                 break;
                 break;
             }
             }
 
 
-            if(count <= 0) {
-                count = 1;
-            }
+            count = MAX(count, 1);
 
 
             // update count state
             // update count state
             model->count = count;
             model->count = count;