Better sky9x fix

This commit is contained in:
3djc
2020-04-28 16:13:17 +02:00
parent be2c10c6cc
commit 114fd2c4f3
2 changed files with 5 additions and 8 deletions
+1 -4
View File
@@ -204,10 +204,7 @@ enum TrainerMode {
enum ModuleIndex {
EXTERNAL_MODULE,
EXTRA_MODULE,
SPORT_MODULE,
TRAINER_MODE_MASTER_BLUETOOTH,
TRAINER_MODE_SLAVE_BLUETOOTH,
TRAINER_MODE_MULTI
SPORT_MODULE
};
#endif
+4 -4
View File
@@ -739,12 +739,12 @@ bool isTrainerModeAvailable(int mode)
return g_eeGeneral.auxSerialMode == UART_MODE_SBUS_TRAINER;
#endif
#if !defined(BLUETOOTH) || defined(PCBX9E)
if (mode == TRAINER_MODE_MASTER_BLUETOOTH || mode == TRAINER_MODE_SLAVE_BLUETOOTH)
return false;
#else
#if defined(BLUETOOTH) && !defined(PCBX9E)
if (g_eeGeneral.bluetoothMode != BLUETOOTH_TRAINER && (mode == TRAINER_MODE_MASTER_BLUETOOTH || mode == TRAINER_MODE_SLAVE_BLUETOOTH))
return false;
#elif !defined(PCBSKY9X)
if (mode == TRAINER_MODE_MASTER_BLUETOOTH || mode == TRAINER_MODE_SLAVE_BLUETOOTH)
return false;
#endif
#if defined(PCBXLITE) && !defined(PCBXLITES)