From c02e928881d56f6f517f00778d27d69fe9324912 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 6 Aug 2022 09:31:38 -0400 Subject: [PATCH] made some interrupt variables volatile --- cubesatsim/cubesatsim.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cubesatsim/cubesatsim.h b/cubesatsim/cubesatsim.h index 9b3718b2..659170da 100644 --- a/cubesatsim/cubesatsim.h +++ b/cubesatsim/cubesatsim.h @@ -169,7 +169,7 @@ void parse_payload(); const char* ssid = STASSID; const char* password = STAPSK; int port = 7373; -bool wifi = false; +volatile bool wifi = false; extern int Encode_8b10b[][256]; @@ -221,7 +221,7 @@ char call[5]; char sim_yes[10]; int mode = BPSK; -int new_mode; +volatile int new_mode; int bitRate, bufLen, rsFrames, payloads, rsFrameLen, dataLen, headerLen, syncBits, syncWord, parityLen, samples, frameCnt, samplePeriod; float sleepTime; unsigned int sampleTime = 0;