From 3d1dbbb0cbffd36b552646fda30df826e440144f Mon Sep 17 00:00:00 2001 From: joeycastillo Date: Sun, 29 Sep 2024 14:55:43 -0400 Subject: [PATCH] beats face displays 'beat' on custom LCD --- watch-faces/clock/beats_face.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/watch-faces/clock/beats_face.c b/watch-faces/clock/beats_face.c index 39e5f6e4..e6c68610 100644 --- a/watch-faces/clock/beats_face.c +++ b/watch-faces/clock/beats_face.c @@ -66,17 +66,19 @@ bool beats_face_loop(movement_event_t event, void *context) { state->next_subsecond_update = (event.subsecond + 1 + (BEAT_REFRESH_FREQUENCY * 2 / 3)) % BEAT_REFRESH_FREQUENCY; state->last_centibeat_displayed = centibeats; } - sprintf(buf, "bt %6lu", centibeats); + sprintf(buf, "%6lu", centibeats); - watch_display_text(WATCH_POSITION_FULL, buf); + watch_display_text_with_fallback(WATCH_POSITION_TOP, "beat", "bt"); + watch_display_text(WATCH_POSITION_BOTTOM, buf); break; case EVENT_LOW_ENERGY_UPDATE: if (!watch_tick_animation_is_running()) watch_start_tick_animation(432); date_time = watch_rtc_get_date_time(); centibeats = clock2beats(date_time.unit.hour, date_time.unit.minute, date_time.unit.second, event.subsecond, movement_get_current_timezone_offset()); - sprintf(buf, "bt %4lu ", centibeats / 100); + sprintf(buf, "%4lu ", centibeats / 100); - watch_display_text(WATCH_POSITION_FULL, buf); + watch_display_text_with_fallback(WATCH_POSITION_TOP, "beat", "bt"); + watch_display_text(WATCH_POSITION_BOTTOM, buf); break; default: movement_default_loop_handler(event);