mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-11-27 23:29:40 +00:00
Telemetry: volatile
This commit is contained in:
@@ -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] ;
|
||||||
|
|||||||
Reference in New Issue
Block a user