Telemetry: volatile

This commit is contained in:
pascallanger 2016-12-05 21:51:20 +01:00
parent ee50a31bba
commit 7d7ca11c81
2 changed files with 3 additions and 3 deletions

View File

@ -818,7 +818,7 @@ ISR(TIMER0_COMPB_vect)
else
{
// 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 )
{
GPIOR0 = ptr->data[ptr->tail] ;
@ -869,7 +869,7 @@ ISR(TIMER0_OVF_vect)
if ( --GPIOR1 == 0 )
{
// prepare next byte
struct t_serial_bash *ptr = &SerialControl ;
volatile struct t_serial_bash *ptr = &SerialControl ;
if ( ptr->head != ptr->tail )
{
GPIOR0 = ptr->data[ptr->tail] ;