Migrate to SDK4.44+MV2

This commit is contained in:
RandyTheSilly committed 2026-11-05 20:51:09 -05:00
1 parent bf7a8a30b4
commit d286450c92
4 files changed
+102 -104

No files matched your search

+4 -4
View File
@@ -75,7 +75,7 @@ static uint8_t s_zap_cooldown;
static uint8_t s_countdown_int = 0;
static bool s_continuous_zap_on_first_triangle;
static char s_countdown_buf[4];
static char s_progress_buf[6];
static char s_progress_buf[8];
// constants
//// shared (setter+alarm)
@@ -183,7 +183,7 @@ static void status_window_load(StatusWindowPurpose purpose) {
scroll_layer_set_content_size(s_status_scroll_layer, GSize(bounds.size.w, max_size.h));
return;
case STATUS_CONFIRMATION: {
static char s_status_confirmed_buffer[86];
static char s_status_confirmed_buffer[88];
snprintf(s_status_confirmed_buffer, sizeof(s_status_confirmed_buffer), "Alarm disarmed and re-set (%02u:%02u) successfully.\n\nSELECT: Exit\nBACK: Change alarm time", the_time.HourSet, the_time.MinuteSet);
text_layer_set_text(s_status_txt_layer, s_status_confirmed_buffer);
window_set_click_config_provider(s_status_window, status_confirmation_click_config_provider);
@@ -246,13 +246,13 @@ static bool schedule_alarm(WakeupReason schedule_reason) {
case WAKE_ALARM: {
target = compute_alarm_time(the_time.HourWIP, the_time.MinuteWIP);
wakeup_cancel_all();
status = wakeup_schedule_simple_robust(target, SECONDS_PER_MINUTE, schedule_reason);
status = wakeup_schedule_simple_robust(target, schedule_reason);
break;
}
case WAKE_RECOVERY_ALARM:
target = time(NULL) + 15;
// no need to cancel alarms, as recovery alarms are short-lived and are expired by the time another is being scheduled
status = wakeup_schedule_simple_robust(target, 15, schedule_reason);
status = wakeup_schedule_simple_robust(target, schedule_reason);
}
if (status < 0) {
push_status_window(STATUS_FAILURE);