summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoeycastillo <joeycastillo@utexas.edu>2023-01-20 15:03:54 -0600
committerGitHub <noreply@github.com>2023-01-20 15:03:54 -0600
commit7ef2d6541ad74f6eee96fbc89f2bc8d004d33ed0 (patch)
treebe26d37109e9f742559d5334a24aa9a561662af5
parent5163cf1fe1e8bf878bf8d4e54b1fa24dccb4e116 (diff)
parentc27b63487bcef57472a6404974e83369458635a2 (diff)
downloadSensor-Watch-7ef2d6541ad74f6eee96fbc89f2bc8d004d33ed0.tar.gz
Sensor-Watch-7ef2d6541ad74f6eee96fbc89f2bc8d004d33ed0.tar.bz2
Sensor-Watch-7ef2d6541ad74f6eee96fbc89f2bc8d004d33ed0.zip
Merge pull request #184 from TheOnePerson/alarm-fix-bell-indicator-on-fridays
alarm face: fix bell indicator not showing up on fridays
-rw-r--r--movement/watch_faces/complication/alarm_face.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/movement/watch_faces/complication/alarm_face.c b/movement/watch_faces/complication/alarm_face.c
index 5ad3976c..52a6c542 100644
--- a/movement/watch_faces/complication/alarm_face.c
+++ b/movement/watch_faces/complication/alarm_face.c
@@ -133,7 +133,7 @@ static void _alarm_face_draw(movement_settings_t *settings, alarm_state_t *state
else {
if (state->alarm[state->alarm_idx].beeps == 0)
watch_display_character('o', _blink_idx[alarm_setting_idx_beeps]);
- else
+ else
watch_display_character(state->alarm[state->alarm_idx].beeps + 48, _blink_idx[alarm_setting_idx_beeps]);
}
}
@@ -182,7 +182,7 @@ static void _alarm_update_alarm_enabled(movement_settings_t *settings, alarm_sta
if ((state->alarm[i].day == weekday_idx && alarm_minutes_of_day >= now_minutes_of_day)
|| ((weekday_idx + 1) % 7 == state->alarm[i].day && alarm_minutes_of_day <= now_minutes_of_day)
|| (state->alarm[i].day == ALARM_DAY_WORKDAY && (weekday_idx < 4
- || (weekday_idx == 5 && alarm_minutes_of_day >= now_minutes_of_day)
+ || (weekday_idx == 4 && alarm_minutes_of_day >= now_minutes_of_day)
|| (weekday_idx == 6 && alarm_minutes_of_day <= now_minutes_of_day)))
|| (state->alarm[i].day == ALARM_DAY_WEEKEND && (weekday_idx == 5
|| (weekday_idx == 6 && alarm_minutes_of_day >= now_minutes_of_day)
@@ -448,7 +448,7 @@ bool alarm_face_loop(movement_event_t event, movement_settings_t *settings, void
movement_move_to_face(0);
break;
default:
- break;
+ break;
}
return true;