]> git.earman.xyz Git - sensor-watch.git/commitdiff
Fix to remove compiler complaint
authorDavid Volovskiy <devolov@gmail.com>
Sat, 3 Aug 2024 15:38:45 +0000 (11:38 -0400)
committerDavid Volovskiy <devolov@gmail.com>
Sat, 3 Aug 2024 15:38:45 +0000 (11:38 -0400)
movement/watch_faces/complication/sunrise_sunset_face.c

index ad2f53394085a45708599b1fd40864afb9281777..98c7103fb7f1e3c56e6f08b06ff98140b7dba382 100644 (file)
@@ -49,7 +49,7 @@ static void _sunrise_sunset_face_update(movement_settings_t *settings, sunrise_s
     double rise, set, minutes, seconds;
     bool show_next_match = false;
     movement_location_t movement_location;
-    if (state->longLatToUse == 0)
+    if (state->longLatToUse == 0 || _location_count <= 1)
         movement_location = (movement_location_t) watch_get_backup_data(1);
     else{
         movement_location.bit.latitude = longLatPresets[state->longLatToUse].latitude;