feat: support for RadioMaster GX12 (#5703)
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com> Co-authored-by: philmoz <phil.a.mitchell@gmail.com> Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
co-authored by
raphaelcoeffic
philmoz
Peter Feerick
parent
0f86cd9a95
commit
36cdd93a1a
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "hal/switch_driver.h"
|
||||
#include "hal/adc_driver.h"
|
||||
#include "hal/rgbleds.h"
|
||||
|
||||
#include "myeeprom.h"
|
||||
#include "edgetx.h"
|
||||
@@ -168,7 +169,7 @@ void evalFunctionSwitches()
|
||||
uint8_t fct_switches = switchGetMaxFctSwitches();
|
||||
for (uint8_t i = 0; i < fct_switches; i++) {
|
||||
if (FSWITCH_CONFIG(i) == SWITCH_NONE) {
|
||||
fsLedOff(i);
|
||||
setFSLedOFF(i);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -202,9 +203,9 @@ void evalFunctionSwitches()
|
||||
|
||||
if (!pwrPressed()) {
|
||||
if (getFSLogicalState(i))
|
||||
fsLedOn(i);
|
||||
setFSLedON(i);
|
||||
else
|
||||
fsLedOff(i);
|
||||
setFSLedOFF(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user