From: David Volovskiy Date: Sat, 6 Jun 2026 21:39:16 +0000 (-0400) Subject: location.bit.latitude needs to be recast as an int16_t X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=adbd51769400197bb4355329e3d8d2bcee09e8bd;p=sensor-watch.git location.bit.latitude needs to be recast as an int16_t --- diff --git a/watch-faces/complication/moon_phase_face.c b/watch-faces/complication/moon_phase_face.c index faeb0d5..b614707 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; } }