Disable SBUS serial when switching to CPPM

This commit is contained in:
Pascal Langer committed 2021-03-04 15:23:23 +01:00
1 parent f8f7769d9c
commit ec83f1e5a3
1 file changed
+7
+7
View File
@@ -2300,6 +2300,13 @@ static void __attribute__((unused)) crc8_update(uint8_t byte)
{
if ( CppmInitialised == false )
init_trainer_ppm() ;
#ifdef SEND_SBUS_SERIAL
if( SbusInitialised == true )
{
usart_disable(USART1);
SbusInitialised = false;
}
#endif
TrainerTimer = millis() ;
len = packet_in[3] ;
uint32_t bitsavailable = 0 ;