LR12 protocol actually doesn't support remote failsafe configuration

This commit is contained in:
Andre Bernet
2015-11-13 19:26:34 +04:00
parent d5824f5719
commit 71411fcb62
3 changed files with 4 additions and 7 deletions
+2 -1
View File
@@ -237,7 +237,8 @@ void ModulePanel::update()
case PULSES_PXX_XJT_LR12: case PULSES_PXX_XJT_LR12:
case PULSES_PXX_DJT: case PULSES_PXX_DJT:
mask |= MASK_CHANNELS_RANGE | MASK_CHANNELS_COUNT; mask |= MASK_CHANNELS_RANGE | MASK_CHANNELS_COUNT;
if ((protocol==PULSES_PXX_XJT_X16) || (protocol==PULSES_PXX_XJT_LR12)) mask |= MASK_FAILSAFES | MASK_RX_NUMBER; if (protocol==PULSES_PXX_XJT_X16) mask |= MASK_FAILSAFES | MASK_RX_NUMBER;
if (protocol==PULSES_PXX_XJT_LR12) mask |= MASK_RX_NUMBER;
break; break;
case PULSES_LP45: case PULSES_LP45:
case PULSES_DSM2: case PULSES_DSM2:
+1 -1
View File
@@ -781,7 +781,7 @@ void menuModelSetup(uint8_t event)
else { else {
horzpos_t l_posHorz = m_posHorz; horzpos_t l_posHorz = m_posHorz;
coord_t xOffsetBind = MODEL_SETUP_BIND_OFS; coord_t xOffsetBind = MODEL_SETUP_BIND_OFS;
if (IS_MODULE_XJT(moduleIdx) && !HAS_RF_PROTOCOL_FAILSAFE(g_model.moduleData[moduleIdx].rfProtocol)) { if (IS_MODULE_XJT(moduleIdx) && g_model.moduleData[moduleIdx].rfProtocol == RF_PROTO_D8) {
xOffsetBind = 0; xOffsetBind = 0;
lcd_putsLeft(y, INDENT "Receiver"); lcd_putsLeft(y, INDENT "Receiver");
if (attr) l_posHorz += 1; if (attr) l_posHorz += 1;
+1 -5
View File
@@ -2043,11 +2043,7 @@ enum RFProtocols {
#endif #endif
}; };
#if defined(MODULE_D16_EU_ONLY_SUPPORT) #define HAS_RF_PROTOCOL_FAILSAFE(protocol) ((protocol) == RF_PROTO_X16)
#define HAS_RF_PROTOCOL_FAILSAFE(protocol) ((protocol) == RF_PROTO_X16)
#else
#define HAS_RF_PROTOCOL_FAILSAFE(protocol) ((protocol) == RF_PROTO_X16 || (protocol) == RF_PROTO_LR12)
#endif
enum DSM2Protocols { enum DSM2Protocols {
DSM2_PROTO_LP45, DSM2_PROTO_LP45,