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 efc2401 commit a9bb646
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 @@ -321,6 +321,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 @@ -334,15 +343,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 a9bb646

Please sign in to comment.