|
|
@@ -93,7 +93,8 @@ 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;
|
|
|
+ furi_check(expected_count > 0, "expected_count < 0");
|
|
|
|
|
|
CountDownViewSelect select = model->select;
|
|
|
|
|
|
@@ -222,9 +223,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;
|