@@ -128,7 +128,7 @@ void auxSerialInit(unsigned int mode, unsigned int protocol)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case UART_MODE_SBUS_TRAINER:
|
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();
|
AUX_SERIAL_POWER_ON();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -140,15 +140,19 @@ void checkTrainerSettings()
|
|||||||
if (g_eeGeneral.auxSerialMode == UART_MODE_SBUS_TRAINER)
|
if (g_eeGeneral.auxSerialMode == UART_MODE_SBUS_TRAINER)
|
||||||
auxSerialSbusInit();
|
auxSerialSbusInit();
|
||||||
else
|
else
|
||||||
|
init_trainer_capture();
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if defined(AUX2_SERIAL)
|
#if defined(AUX2_SERIAL)
|
||||||
if (g_eeGeneral.aux2SerialMode == UART_MODE_SBUS_TRAINER)
|
if (g_eeGeneral.aux2SerialMode == UART_MODE_SBUS_TRAINER)
|
||||||
aux2SerialSbusInit();
|
aux2SerialSbusInit();
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
init_trainer_capture();
|
init_trainer_capture();
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
init_trainer_capture();
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case TRAINER_MODE_MASTER_TRAINER_JACK:
|
case TRAINER_MODE_MASTER_TRAINER_JACK:
|
||||||
init_trainer_capture();
|
init_trainer_capture();
|
||||||
|
|||||||
Reference in New Issue
Block a user