Skip to content

Commit 407ab1d

Browse files
authored
Merge pull request #421 from sparkfun/release_candidate
Fix developer mode
2 parents 7afcaac + 932d8e5 commit 407ab1d

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

Firmware/RTK_Surveyor/Begin.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,6 @@ void beginSD()
287287
online.microSD = false;
288288
gotSemaphore = false;
289289

290-
log_d("settings.enableSD: %d", settings.enableSD);
291-
292290
while (settings.enableSD == true)
293291
{
294292
//Setup SD card access semaphore
@@ -305,7 +303,7 @@ void beginSD()
305303

306304
if (USE_SPI_MICROSD)
307305
{
308-
systemPrintln("Initializing microSD - using SPI, SdFat and SdFile");
306+
log_d("Initializing microSD - using SPI, SdFat and SdFile");
309307

310308
pinMode(pin_microSD_CS, OUTPUT);
311309
digitalWrite(pin_microSD_CS, HIGH); //Be sure SD is deselected

Firmware/RTK_Surveyor/Buttons.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ void powerOnCheck()
88
if (digitalRead(pin_powerSenseAndControl) == LOW)
99
delay(500);
1010

11-
if (ENABLE_DEVELOPER)
11+
if (ENABLE_DEVELOPER == false)
1212
{
1313
if (pin_powerSenseAndControl >= 0)
1414
if (digitalRead(pin_powerSenseAndControl) != LOW)

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@
1919
Settings are loaded from microSD if available otherwise settings are pulled from ESP32's file system LittleFS.
2020
*/
2121

22-
//This is passed in from compiler extra flags
23-
#ifndef POINTPERFECT_TOKEN
24-
#define FIRMWARE_VERSION_MAJOR 99
25-
#define FIRMWARE_VERSION_MINOR 99
26-
#endif
27-
2822
#define COMPILE_WIFI //Comment out to remove WiFi functionality
2923
#define COMPILE_AP //Requires WiFi. Comment out to remove Access Point functionality
3024
#define COMPILE_ESPNOW //Requires WiFi. Comment out to remove ESP-Now functionality.
@@ -35,7 +29,13 @@
3529

3630
//Always define ENABLE_DEVELOPER to enable its use in conditional statements
3731
#ifndef ENABLE_DEVELOPER
38-
#define ENABLE_DEVELOPER true //This enable specials developer modes (don't check power button at startup). Passed in from compiler flags
32+
#define ENABLE_DEVELOPER true //This enable specials developer modes (don't check power button at startup). Passed in from compiler flags.
33+
#endif
34+
35+
//This is passed in from compiler extra flags
36+
#ifndef POINTPERFECT_TOKEN
37+
#define FIRMWARE_VERSION_MAJOR 99
38+
#define FIRMWARE_VERSION_MINOR 99
3939
#endif
4040

4141
//Define the RTK board identifier:

0 commit comments

Comments
 (0)