Fix TX16S compilation when both BT and externalaccessmod are defined

This commit is contained in:
3djc
2020-10-23 22:03:51 +02:00
parent 85133f1a86
commit 9272029ec2
3 changed files with 13 additions and 3 deletions
+8 -1
View File
@@ -89,7 +89,14 @@ void checkTrainerSettings()
#if defined(TRAINER_BATTERY_COMPARTMENT)
case TRAINER_MODE_MASTER_BATTERY_COMPARTMENT:
auxSerialStop();
#if defined(AUX_SERIAL)
if (g_eeGeneral.auxSerialMode == UART_MODE_SBUS_TRAINER)
auxSerialStop();
#endif
#if defined(AUX2_SERIAL)
if (g_eeGeneral.aux2SerialMode == UART_MODE_SBUS_TRAINER)
aux2SerialStop();
#endif
break;
#endif
}