From adbd51769400197bb4355329e3d8d2bcee09e8bd Mon Sep 17 00:00:00 2001 From: David Volovskiy Date: Sat, 6 Jun 2026 17:39:16 -0400 Subject: [PATCH] location.bit.latitude needs to be recast as an int16_t --- watch-faces/complication/moon_phase_face.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watch-faces/complication/moon_phase_face.c b/watch-faces/complication/moon_phase_face.c index faeb0d5f..b6147070 100644 --- a/watch-faces/complication/moon_phase_face.c +++ b/watch-faces/complication/moon_phase_face.c @@ -42,10 +42,10 @@ static const float phase_changes[] = {0, 1, 6.38264692644, 8.38264692644, 13.76529385288, 15.76529385288, 21.14794077932, 23.14794077932, 28.53058770576, 29.53058770576}; -static bool is_southern_hemisphere(moon_phase_state_t *state) { +static void is_southern_hemisphere(moon_phase_state_t *state) { movement_location_t location = {0}; if (filesystem_read_file("location.u32", (char *) &location.reg, sizeof(movement_location_t))) { - state->southern_hemisphere = location.bit.latitude < 0; + state->southern_hemisphere = (int16_t)location.bit.latitude < 0; } }