Fix SBUS trainer defines

This commit is contained in:
Raphael Coeffic
2022-03-20 16:30:59 +01:00
parent de43d7e77c
commit e5bb901b1e
6 changed files with 12 additions and 16 deletions
+6 -1
View File
@@ -789,8 +789,13 @@ bool isTrainerModeAvailable(int mode)
}
#endif
if (mode == TRAINER_MODE_MASTER_SERIAL)
if (mode == TRAINER_MODE_MASTER_SERIAL) {
#if defined(SBUS_TRAINER)
return hasSerialMode(UART_MODE_SBUS_TRAINER) >= 0;
#else
return false;
#endif
}
if ((mode == TRAINER_MODE_MASTER_BLUETOOTH ||
mode == TRAINER_MODE_SLAVE_BLUETOOTH)