Skip to content

Commit

Permalink
Fix strobe mode (ToyKeeper#94).
Browse files Browse the repository at this point in the history
Looks like this inadvertantly got placed inside an #ifdef USE_SIMPLE_UI
block when fixing ToyKeeper#85. Moving it below that block fixes it.
  • Loading branch information
fwiffo authored and Isilmerie committed Oct 14, 2024
1 parent f30caa3 commit f7661ad
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ui/anduril/off-mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,15 @@ uint8_t off_state(Event event, uint16_t arg) {
}
#endif // ifdef USE_EXTENDED_SIMPLE_UI

// 10 clicks: enable simple UI
else if (event == EV_10clicks) {
blink_once();
cfg.simple_ui_active = 1;
save_config();
return EVENT_HANDLED;
}
#endif // ifdef USE_SIMPLE_UI

// click, click, long-click: strobe mode
#ifdef USE_STROBE_STATE
else if (event == EV_click3_hold) {
Expand All @@ -380,15 +389,6 @@ uint8_t off_state(Event event, uint16_t arg) {
}
#endif

// 10 clicks: enable simple UI
else if (event == EV_10clicks) {
blink_once();
cfg.simple_ui_active = 1;
save_config();
return EVENT_HANDLED;
}
#endif // ifdef USE_SIMPLE_UI

#ifdef USE_MOMENTARY_MODE
// 5 clicks: momentary mode
else if (event == EV_5clicks) {
Expand Down

0 comments on commit f7661ad

Please sign in to comment.