Skip to content

Commit 8834bfa

Browse files
committed
Catch exception on 'expected_count' < 0
This shouldn't happend as the setting mode sets the lower bound to 1.
1 parent 748c3e4 commit 8834bfa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

views/countdown_view.c

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ static void countdown_timer_view_on_draw(Canvas* canvas, void* ctx) {
9494

9595
int32_t count = model->count;
9696
int32_t expected_count = model->saved_count_setting;
97+
furi_check(expected_count > 0, "expected_count < 0");
9798

9899
CountDownViewSelect select = model->select;
99100

0 commit comments

Comments
 (0)