feat(radio): refactor of switch handling to better support customisable switches (#6095)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com> Co-authored-by: 3djc <3djc@gh.com> Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
co-authored by
philmoz
3djc
elecpower
parent
28833f42e6
commit
0c8c39b134
@@ -26,6 +26,13 @@ enum SwitchConfig {
|
||||
SWITCH_TOGGLE,
|
||||
SWITCH_2POS,
|
||||
SWITCH_3POS,
|
||||
#if defined(FUNCTION_SWITCHES)
|
||||
SWITCH_GLOBAL,
|
||||
#endif
|
||||
SWITCH_none = SWITCH_NONE,
|
||||
SWITCH_toggle = SWITCH_TOGGLE,
|
||||
SWITCH_2pos = SWITCH_2POS,
|
||||
SWITCH_3pos = SWITCH_3POS,
|
||||
};
|
||||
|
||||
enum FlexAnalogConfig {
|
||||
@@ -40,11 +47,16 @@ enum FlexAnalogConfig {
|
||||
};
|
||||
|
||||
enum fsStartPositionType {
|
||||
FS_START_ON,
|
||||
FS_START_OFF,
|
||||
FS_START_ON,
|
||||
FS_START_PREVIOUS
|
||||
};
|
||||
|
||||
enum booleanEnum {
|
||||
BOOL_OFF,
|
||||
BOOL_ON
|
||||
};
|
||||
|
||||
enum CalibrationState {
|
||||
CALIB_START,
|
||||
CALIB_SET_MIDPOINT,
|
||||
|
||||
Reference in New Issue
Block a user