Преглед изворни кода

Catch exception on 'expected_count' < 0

This shouldn't happend as the setting mode sets the lower bound to 1.
0w0mewo пре 1 година
родитељ
комит
8834bfafa5
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      views/countdown_view.c

+ 1 - 0
views/countdown_view.c

@@ -94,6 +94,7 @@ static void countdown_timer_view_on_draw(Canvas* canvas, void* ctx) {
 
     int32_t count = model->count;
     int32_t expected_count = model->saved_count_setting;
+    furi_check(expected_count > 0, "expected_count < 0");
 
     CountDownViewSelect select = model->select;