Skip to content

Commit

Permalink
Lee controller: fix inconsisten order h/c file
Browse files Browse the repository at this point in the history
* h file had #ifdef CONFIG_CONTROLLER_OOT after Lee; c-file had it before
* Add define to force usage of Lee controller
  • Loading branch information
whoenig committed May 29, 2024
1 parent a25e8fb commit 77d9afb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/src/controller/controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ static ControllerFcns controllerFunctions[] = {
{.init = controllerMellingerFirmwareInit, .test = controllerMellingerFirmwareTest, .update = controllerMellingerFirmware, .name = "Mellinger"},
{.init = controllerINDIInit, .test = controllerINDITest, .update = controllerINDI, .name = "INDI"},
{.init = controllerBrescianiniInit, .test = controllerBrescianiniTest, .update = controllerBrescianini, .name = "Brescianini"},
{.init = controllerLeeFirmwareInit, .test = controllerLeeFirmwareTest, .update = controllerLeeFirmware, .name = "Lee"},
#ifdef CONFIG_CONTROLLER_OOT
{.init = controllerOutOfTreeInit, .test = controllerOutOfTreeTest, .update = controllerOutOfTree, .name = "OutOfTree"},
#endif
{.init = controllerLeeFirmwareInit, .test = controllerLeeFirmwareTest, .update = controllerLeeFirmware, .name = "Lee"},
};


Expand All @@ -55,6 +55,8 @@ void controllerInit(ControllerType controller) {
#define CONTROLLER ControllerTypeMellinger
#elif defined(CONFIG_CONTROLLER_BRESCIANINI)
#define CONTROLLER ControllerTypeBrescianini
#elif defined(CONFIG_CONTROLLER_LEE)
#define CONTROLLER ControllerTypeLee
#else
#define CONTROLLER ControllerTypeAutoSelect
#endif
Expand Down

0 comments on commit 77d9afb

Please sign in to comment.