Skip to content

Instantly share code, notes, and snippets.

@DurvalMenezes
Last active July 6, 2023 15:39
Show Gist options
  • Save DurvalMenezes/4cda5beffd349f223b87f2b3bbc797de to your computer and use it in GitHub Desktop.
Save DurvalMenezes/4cda5beffd349f223b87f2b3bbc797de to your computer and use it in GitHub Desktop.
#Fixes compile-time error when #undef USE_SIMPLE_UI
#See https://budgetlightforum.com/t/anduril-2-feature-change-suggestions/218045/199
#2023/06/11 Written [Durval Menezes]
--- 721/~toykeeper/flashlight-firmware/multi-channel/ToyKeeper/spaghetti-monster/anduril/channel-modes.c.orig-20230611 2023-04-26 03:39:28.000000000 -0400
+++ 721/~toykeeper/flashlight-firmware/multi-channel/ToyKeeper/spaghetti-monster/anduril/channel-modes.c 2023-06-11 20:03:39.254320591 -0400
@@ -121,19 +121,19 @@
#if defined(USE_SIMPLE_UI)
// remaining mappings aren't "simple", so stop here
if (cfg.simple_ui_active) {
return EVENT_NOT_HANDLED;
}
- #endif
#if NUM_CHANNEL_MODES > 1
// channel toggle menu on ... 9H?
else if (event == EV_click9_hold) {
push_state(channel_mode_config_state, 0);
return MISCHIEF_MANAGED;
}
#endif
+ #endif
return EVENT_NOT_HANDLED;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment