Skip to content

Commit

Permalink
clamp counter setting to always above zero
Browse files Browse the repository at this point in the history
  • Loading branch information
0w0miao committed May 16, 2024
1 parent ceced6c commit 04d7a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/countdown_view.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ static void handle_time_setting_updown(CountDownTimView* cdv, CountDownViewCmd c
}

if(count < 0) {
count = 0;
count = 1;
}

// update count state
Expand Down

0 comments on commit 04d7a71

Please sign in to comment.