]> git.earman.xyz Git - sensor-watch.git/commitdiff
acclerometer threshold setting: swap light and alarm button to match wider UI idiom
authorJoey Castillo <joeycastillo@utexas.edu>
Wed, 25 Jun 2025 21:28:19 +0000 (17:28 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Wed, 25 Jun 2025 21:28:19 +0000 (17:28 -0400)
watch-faces/sensor/accelerometer_status_face.c

index fde711cf5feef62f8c1360fa8cb323de248a8c8b..1b282efa5a368229663b9cd9e01af57988b0b483 100644 (file)
@@ -70,7 +70,7 @@ bool accelerometer_status_face_loop(movement_event_t event, void *context) {
     if (state->is_setting) {
         watch_clear_indicator(WATCH_INDICATOR_SIGNAL);
         switch (event.event_type) {
-            case EVENT_LIGHT_BUTTON_DOWN:
+            case EVENT_ALARM_BUTTON_DOWN:
                 state->new_threshold = (state->new_threshold + 1) % 64;
                 // fall through
             case EVENT_TICK:
@@ -87,7 +87,7 @@ bool accelerometer_status_face_loop(movement_event_t event, void *context) {
                     }
                 }
                 break;
-            case EVENT_ALARM_BUTTON_UP:
+            case EVENT_LIGHT_BUTTON_DOWN:
                 movement_set_accelerometer_motion_threshold(state->new_threshold);
                 state->threshold = state->new_threshold;
                 watch_clear_decimal_if_available();