Skip to content

Commit 8ddde69

Browse files
committed
Make button ISR variable volatile
1 parent dd58d62 commit 8ddde69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ unsigned long pplKeyExpirationMs = 0; // Milliseconds until the current PPL key
679679

680680
SFE_PCA95XX io(PCA95XX_PCA9554); // Create a PCA9554, default address 0x20
681681

682-
bool gpioChanged = false; // Set by gpioExpanderISR
682+
volatile bool gpioChanged = false; // Set by gpioExpanderISR
683683
uint8_t gpioExpander_previousState =
684684
0b00011111; // Buttons start high, card detect starts low. Ignore unconnected GPIO6/7.
685685
unsigned long gpioExpander_holdStart[8] = {0};

0 commit comments

Comments
 (0)