mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-11-16 08:07:34 +00:00
Disable SBUS serial when switching to CPPM
This commit is contained in:
1 parent
f8f7769d9c
commit
ec83f1e5a3
1 file changed
+7
@@ -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 ;
|
||||
|
||||
Reference in new issue
Block a user