From fc6fc95e1ed89f6620d45d1fd63c02ec75445eca Mon Sep 17 00:00:00 2001 From: Pawel Spychalski Date: Wed, 16 May 2018 15:08:58 +0200 Subject: [PATCH] SAMD compiler fixes --- crossbow/crossbow.ino | 2 +- crossbow/radio_node.h | 4 ++-- crossbow/tx_oled.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crossbow/crossbow.ino b/crossbow/crossbow.ino index e3c3138..a7fd2b4 100644 --- a/crossbow/crossbow.ino +++ b/crossbow/crossbow.ino @@ -33,7 +33,7 @@ Copyright (c) 20xx, MPL Contributor1 contrib1@example.net #error please select hardware #endif -volatile RadioNode radioNode; +RadioNode radioNode; /* * Main defines for device working in TX mode diff --git a/crossbow/radio_node.h b/crossbow/radio_node.h index e88fcc1..736c862 100644 --- a/crossbow/radio_node.h +++ b/crossbow/radio_node.h @@ -35,8 +35,8 @@ class RadioNode { void handleChannelDwell(void); void handleTxDoneState(); void handleTx(QspConfiguration_t *qsp); - int8_t bytesToRead = -1; - uint8_t deviceState = RADIO_STATE_RX; + volatile int8_t bytesToRead = -1; + volatile uint8_t deviceState = RADIO_STATE_RX; uint8_t rssi = 0; uint8_t snr = 0; uint8_t lastReceivedChannel = 0; diff --git a/crossbow/tx_oled.h b/crossbow/tx_oled.h index 41c4b33..5008b96 100644 --- a/crossbow/tx_oled.h +++ b/crossbow/tx_oled.h @@ -9,7 +9,7 @@ #include "tactile.h" #include "radio_node.h" -extern volatile RadioNode radioNode; +extern RadioNode radioNode; enum txOledPages { TX_PAGE_NONE,