Skip to content

Commit

Permalink
Prioritize OOT controller if enabled
Browse files Browse the repository at this point in the history
This is more intuitive, especially considering the configuration GUIs
  • Loading branch information
gemenerik committed Aug 8, 2024
1 parent 9aa4538 commit 159776e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/src/controller/controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ void controllerInit(ControllerType controller) {
currentController = DEFAULT_CONTROLLER;
}

#if defined(CONFIG_CONTROLLER_PID)
#if defined(CONFIG_CONTROLLER_OOT)
#define CONTROLLER ControllerTypeOot
#elif defined(CONFIG_CONTROLLER_PID)
#define CONTROLLER ControllerTypePID
#elif defined(CONFIG_CONTROLLER_INDI)
#define CONTROLLER ControllerTypeINDI
Expand All @@ -57,8 +59,6 @@ void controllerInit(ControllerType controller) {
#define CONTROLLER ControllerTypeBrescianini
#elif defined(CONFIG_CONTROLLER_LEE)
#define CONTROLLER ControllerTypeLee
#elif defined(CONFIG_CONTROLLER_OOT)
#define CONTROLLER ControllerTypeOot
#else
#define CONTROLLER ControllerTypeAutoSelect
#endif
Expand Down

0 comments on commit 159776e

Please sign in to comment.