]> git.earman.xyz Git - sensor-watch.git/commitdiff
fix(settings_face): Off by one if Low Energy Mode forbidden
authorStephan <99481666+stephan242@users.noreply.github.com>
Sat, 4 Apr 2026 21:29:00 +0000 (22:29 +0100)
committerStephan <99481666+stephan242@users.noreply.github.com>
Sat, 4 Apr 2026 21:29:00 +0000 (22:29 +0100)
watch-faces/settings/settings_face.c

index 73bdadc14cec0f6e0c26c6269f2854b69a9c656d..a0f1e45dff058baaa127800290365e67c32a6591 100644 (file)
@@ -293,7 +293,10 @@ void settings_face_setup(uint8_t watch_face_index, void ** context_ptr) {
         settings_state_t *state = (settings_state_t *)*context_ptr;
         int8_t current_setting = 0;
 
-        state->num_settings = 7; // baseline, without LED settings
+        state->num_settings = 6; // baseline, without LED settings
+#ifndef MOVEMENT_LOW_ENERGY_MODE_FORBIDDEN
+        state->num_settings++;
+#endif
 #ifdef BUILD_GIT_HASH
         state->num_settings++;
 #endif