mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-03-14 12:19:11 +00:00
Disable SBUS serial when switching to CPPM
This commit is contained in:
parent
f8f7769d9c
commit
ec83f1e5a3
@ -2300,6 +2300,13 @@ static void __attribute__((unused)) crc8_update(uint8_t byte)
|
|||||||
{
|
{
|
||||||
if ( CppmInitialised == false )
|
if ( CppmInitialised == false )
|
||||||
init_trainer_ppm() ;
|
init_trainer_ppm() ;
|
||||||
|
#ifdef SEND_SBUS_SERIAL
|
||||||
|
if( SbusInitialised == true )
|
||||||
|
{
|
||||||
|
usart_disable(USART1);
|
||||||
|
SbusInitialised = false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
TrainerTimer = millis() ;
|
TrainerTimer = millis() ;
|
||||||
len = packet_in[3] ;
|
len = packet_in[3] ;
|
||||||
uint32_t bitsavailable = 0 ;
|
uint32_t bitsavailable = 0 ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user