Still not tested, but it doesn't reboot anymore
This commit is contained in:
Bertrand Songis
2020-12-14 19:41:14 +01:00
parent a9179d1357
commit a95df47384
2 changed files with 6 additions and 2 deletions
@@ -128,7 +128,7 @@ void auxSerialInit(unsigned int mode, unsigned int protocol)
break;
case UART_MODE_SBUS_TRAINER:
auxSerialSetup(SBUS_BAUDRATE, false, USART_WordLength_9b, USART_Parity_Even, USART_StopBits_2); // 2 stop bits requires USART_WordLength_9b
auxSerialSetup(SBUS_BAUDRATE, true, USART_WordLength_9b, USART_Parity_Even, USART_StopBits_2); // 2 stop bits requires USART_WordLength_9b
AUX_SERIAL_POWER_ON();
break;
+5 -1
View File
@@ -140,15 +140,19 @@ void checkTrainerSettings()
if (g_eeGeneral.auxSerialMode == UART_MODE_SBUS_TRAINER)
auxSerialSbusInit();
else
init_trainer_capture();
break;
#endif
#if defined(AUX2_SERIAL)
if (g_eeGeneral.aux2SerialMode == UART_MODE_SBUS_TRAINER)
aux2SerialSbusInit();
else
#endif
init_trainer_capture();
break;
#endif
init_trainer_capture();
break;
#endif
case TRAINER_MODE_MASTER_TRAINER_JACK:
init_trainer_capture();