Skip to content

Commit ef535bc

Browse files
committed
Minor changes.
1 parent 1012b45 commit ef535bc

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

utils/utils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void notification_off() {
5656
}
5757

5858
void notification_timeup() {
59-
notification_message(furi_record_open(RECORD_NOTIFICATION), &sequence_audiovisual_alert);
59+
notification_message(furi_record_open(RECORD_NOTIFICATION), &sequence_timeup);
6060
}
6161

6262
void parse_sec_to_time_str(char* buffer, size_t len, int32_t sec) {

views/countdown_view.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static void countdown_timer_view_on_draw(Canvas* canvas, void* ctx) {
9393
char buffer[64];
9494

9595
int32_t count = model->count;
96-
int32_t expected_count = MAX(model->saved_count_setting, 1);
96+
int32_t expected_count = model->saved_count_setting;
9797

9898
CountDownViewSelect select = model->select;
9999

@@ -219,9 +219,7 @@ static void handle_time_setting_updown(CountDownTimView* cdv, CountDownViewCmd c
219219
break;
220220
}
221221

222-
if(count <= 0) {
223-
count = 1;
224-
}
222+
count = MAX(count, 1);
225223

226224
// update count state
227225
model->count = count;

0 commit comments

Comments
 (0)