improve fix
This commit is contained in:
@@ -739,19 +739,14 @@ bool isTrainerModeAvailable(int mode)
|
|||||||
return g_eeGeneral.auxSerialMode == UART_MODE_SBUS_TRAINER;
|
return g_eeGeneral.auxSerialMode == UART_MODE_SBUS_TRAINER;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(PCBX9E)
|
#if !defined(BLUETOOTH) || defined(PCBX9E)
|
||||||
if (mode == TRAINER_MODE_MASTER_BLUETOOTH || mode == TRAINER_MODE_SLAVE_BLUETOOTH)
|
if (mode == TRAINER_MODE_MASTER_BLUETOOTH || mode == TRAINER_MODE_SLAVE_BLUETOOTH)
|
||||||
return false;
|
return false;
|
||||||
#elif defined(BLUETOOTH)
|
#else
|
||||||
if (g_eeGeneral.bluetoothMode != BLUETOOTH_TRAINER && (mode == TRAINER_MODE_MASTER_BLUETOOTH || mode == TRAINER_MODE_SLAVE_BLUETOOTH))
|
if (g_eeGeneral.bluetoothMode != BLUETOOTH_TRAINER && (mode == TRAINER_MODE_MASTER_BLUETOOTH || mode == TRAINER_MODE_SLAVE_BLUETOOTH))
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(BLUETOOTH)
|
|
||||||
if (mode == TRAINER_MODE_MASTER_BLUETOOTH || mode == TRAINER_MODE_SLAVE_BLUETOOTH)
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(PCBXLITE) && !defined(PCBXLITES)
|
#if defined(PCBXLITE) && !defined(PCBXLITES)
|
||||||
if (mode == TRAINER_MODE_MASTER_TRAINER_JACK || mode == TRAINER_MODE_SLAVE)
|
if (mode == TRAINER_MODE_MASTER_TRAINER_JACK || mode == TRAINER_MODE_SLAVE)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user