]> git.earman.xyz Git - sensor-watch.git/commitdiff
temperature display: long press to toggle units
authorJoey Castillo <joeycastillo@utexas.edu>
Sun, 8 Jun 2025 13:47:31 +0000 (07:47 -0600)
committerJoey Castillo <joeycastillo@utexas.edu>
Sun, 8 Jun 2025 13:48:46 +0000 (07:48 -0600)
watch-faces/sensor/temperature_display_face.c

index 161b22da4124c011ca0c1676829c7d6556492e04..819240e7586def86e819a60688e65e05ff7b187d 100644 (file)
@@ -53,7 +53,7 @@ bool temperature_display_face_loop(movement_event_t event, void *context) {
     (void) context;
     watch_date_time_t date_time = watch_rtc_get_date_time();
     switch (event.event_type) {
-        case EVENT_ALARM_BUTTON_DOWN:
+        case EVENT_ALARM_LONG_PRESS:
             movement_set_use_imperial_units(!movement_use_imperial_units());
             _temperature_display_face_update_display(movement_use_imperial_units());
             break;