mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Better sky9x fix
This commit is contained in:
parent
be2c10c6cc
commit
114fd2c4f3
2 changed files with 5 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue