Skip to content

Commit

Permalink
Merge pull request #421 from sparkfun/release_candidate
Browse files Browse the repository at this point in the history
Fix developer mode
  • Loading branch information
nseidle authored Mar 8, 2023
2 parents 7afcaac + 932d8e5 commit 407ab1d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
4 changes: 1 addition & 3 deletions Firmware/RTK_Surveyor/Begin.ino
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,6 @@ void beginSD()
online.microSD = false;
gotSemaphore = false;

log_d("settings.enableSD: %d", settings.enableSD);

while (settings.enableSD == true)
{
//Setup SD card access semaphore
Expand All @@ -305,7 +303,7 @@ void beginSD()

if (USE_SPI_MICROSD)
{
systemPrintln("Initializing microSD - using SPI, SdFat and SdFile");
log_d("Initializing microSD - using SPI, SdFat and SdFile");

pinMode(pin_microSD_CS, OUTPUT);
digitalWrite(pin_microSD_CS, HIGH); //Be sure SD is deselected
Expand Down
2 changes: 1 addition & 1 deletion Firmware/RTK_Surveyor/Buttons.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void powerOnCheck()
if (digitalRead(pin_powerSenseAndControl) == LOW)
delay(500);

if (ENABLE_DEVELOPER)
if (ENABLE_DEVELOPER == false)
{
if (pin_powerSenseAndControl >= 0)
if (digitalRead(pin_powerSenseAndControl) != LOW)
Expand Down
14 changes: 7 additions & 7 deletions Firmware/RTK_Surveyor/RTK_Surveyor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
Settings are loaded from microSD if available otherwise settings are pulled from ESP32's file system LittleFS.
*/

//This is passed in from compiler extra flags
#ifndef POINTPERFECT_TOKEN
#define FIRMWARE_VERSION_MAJOR 99
#define FIRMWARE_VERSION_MINOR 99
#endif

#define COMPILE_WIFI //Comment out to remove WiFi functionality
#define COMPILE_AP //Requires WiFi. Comment out to remove Access Point functionality
#define COMPILE_ESPNOW //Requires WiFi. Comment out to remove ESP-Now functionality.
Expand All @@ -35,7 +29,13 @@

//Always define ENABLE_DEVELOPER to enable its use in conditional statements
#ifndef ENABLE_DEVELOPER
#define ENABLE_DEVELOPER true //This enable specials developer modes (don't check power button at startup). Passed in from compiler flags
#define ENABLE_DEVELOPER true //This enable specials developer modes (don't check power button at startup). Passed in from compiler flags.
#endif

//This is passed in from compiler extra flags
#ifndef POINTPERFECT_TOKEN
#define FIRMWARE_VERSION_MAJOR 99
#define FIRMWARE_VERSION_MINOR 99
#endif

//Define the RTK board identifier:
Expand Down

0 comments on commit 407ab1d

Please sign in to comment.