mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-09 23:08:12 +00:00
Telemetry: volatile
This commit is contained in:
parent
ee50a31bba
commit
7d7ca11c81
@ -818,7 +818,7 @@ ISR(TIMER0_COMPB_vect)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// prepare next byte and allow for 2 stop bits
|
// prepare next byte and allow for 2 stop bits
|
||||||
struct t_serial_bash *ptr = &SerialControl ;
|
volatile struct t_serial_bash *ptr = &SerialControl ;
|
||||||
if ( ptr->head != ptr->tail )
|
if ( ptr->head != ptr->tail )
|
||||||
{
|
{
|
||||||
GPIOR0 = ptr->data[ptr->tail] ;
|
GPIOR0 = ptr->data[ptr->tail] ;
|
||||||
@ -869,7 +869,7 @@ ISR(TIMER0_OVF_vect)
|
|||||||
if ( --GPIOR1 == 0 )
|
if ( --GPIOR1 == 0 )
|
||||||
{
|
{
|
||||||
// prepare next byte
|
// prepare next byte
|
||||||
struct t_serial_bash *ptr = &SerialControl ;
|
volatile struct t_serial_bash *ptr = &SerialControl ;
|
||||||
if ( ptr->head != ptr->tail )
|
if ( ptr->head != ptr->tail )
|
||||||
{
|
{
|
||||||
GPIOR0 = ptr->data[ptr->tail] ;
|
GPIOR0 = ptr->data[ptr->tail] ;
|
||||||
|
@ -175,7 +175,7 @@ const PPM_Parameters PPM_prot[15]= {
|
|||||||
/* 11 */ {MODE_SLT , 0 , 0 , P_HIGH , NO_AUTOBIND , 0 },
|
/* 11 */ {MODE_SLT , 0 , 0 , P_HIGH , NO_AUTOBIND , 0 },
|
||||||
/* 12 */ {MODE_CX10 , CX10_BLUE , 0 , P_HIGH , NO_AUTOBIND , 0 },
|
/* 12 */ {MODE_CX10 , CX10_BLUE , 0 , P_HIGH , NO_AUTOBIND , 0 },
|
||||||
/* 13 */ {MODE_CG023 , CG023 , 0 , P_HIGH , NO_AUTOBIND , 0 },
|
/* 13 */ {MODE_CG023 , CG023 , 0 , P_HIGH , NO_AUTOBIND , 0 },
|
||||||
/* 14 */ {MODE_BAYANG, BAYANG , 0 , P_HIGH , NO_AUTOBIND , 0 },
|
/* 14 */ {MODE_BAYANG, BAYANG , 0 , P_HIGH , NO_AUTOBIND , 0 },
|
||||||
/* 15 */ {MODE_SYMAX , SYMAX5C , 0 , P_HIGH , NO_AUTOBIND , 0 }
|
/* 15 */ {MODE_SYMAX , SYMAX5C , 0 , P_HIGH , NO_AUTOBIND , 0 }
|
||||||
};
|
};
|
||||||
/* Available protocols and associated sub protocols to pick and choose from
|
/* Available protocols and associated sub protocols to pick and choose from
|
||||||
|
Loading…
x
Reference in New Issue
Block a user