Merge pull request #2290 from opentx/bsongis/issue_2266_set_failsafe_custom_function
Fixes #2266
This commit is contained in:
@@ -42,7 +42,7 @@ enum ModuleFlag
|
||||
MODULE_NORMAL_MODE,
|
||||
MODULE_RANGECHECK,
|
||||
MODULE_BIND,
|
||||
MODULE_OFF,
|
||||
// MODULE_OFF, // will need an EEPROM conversion
|
||||
};
|
||||
|
||||
#if defined(CPUARM) // (PXX) || defined(DSM2)
|
||||
|
||||
@@ -110,9 +110,12 @@ void setupPulses(unsigned int port)
|
||||
required_protocol = PROTO_NONE;
|
||||
}
|
||||
|
||||
#if 0
|
||||
// will need an EEPROM conversion
|
||||
if (moduleFlag[port] == MODULE_OFF) {
|
||||
required_protocol = PROTO_NONE;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (s_current_protocol[port] != required_protocol) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user