Skip to content

Commit 7f1f97a

Browse files
committed
Stop ESP-Now before firmware update.
1 parent 50bf22c commit 7f1f97a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const int FIRMWARE_VERSION_MINOR = 5;
3030
#define COMPILE_ESPNOW //Requires WiFi. Comment out to remove ESP-Now functionality.
3131
#define COMPILE_BT //Comment out to remove Bluetooth functionality
3232
#define COMPILE_L_BAND //Comment out to remove L-Band functionality
33-
#define ENABLE_DEVELOPER //Uncomment this line to enable special developer modes (don't check power button at startup)
33+
//#define ENABLE_DEVELOPER //Uncomment this line to enable special developer modes (don't check power button at startup)
3434

3535
//Define the RTK board identifier:
3636
// This is an int which is unique to this variant of the RTK Surveyor hardware which allows us

Firmware/RTK_Surveyor/menuFirmware.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ void updateFromSD(const char *firmwareFileName)
146146
}
147147

148148
//Turn off any tasks so that we are not disrupted
149+
espnowStop();
149150
wifiStop();
150151
bluetoothStop();
151152

0 commit comments

Comments
 (0)