Skip to content

Commit d080328

Browse files
committed
Fix L_Band compile guard
1 parent 2f7ea43 commit d080328

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Firmware/RTK_Surveyor/Form.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,10 @@ void createSettingsString(char* settingsCSV)
387387
char apDaysRemaining[20];
388388
if (strlen(settings.pointPerfectCurrentKey) > 0)
389389
{
390+
#ifdef COMPILE_L_BAND
390391
uint8_t daysRemaining = daysFromEpoch(settings.pointPerfectNextKeyStart + settings.pointPerfectNextKeyDuration + 1);
391392
sprintf(apDaysRemaining, "%d", daysRemaining);
393+
#endif
392394
}
393395
else
394396
sprintf(apDaysRemaining, "No Keys");

Firmware/RTK_Surveyor/RTK_Surveyor.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ const int FIRMWARE_VERSION_MINOR = 4;
2727

2828
#define COMPILE_WIFI //Comment out to remove WiFi functionality
2929
//#define COMPILE_AP //Requires WiFi. Comment out to remove Access Point functionality
30-
//#define COMPILE_ESPNOW //Requires WiFi. Comment out to remove ESP-Now functionality.
31-
//#define COMPILE_BT //Comment out to remove Bluetooth functionality
32-
//#define COMPILE_L_BAND //Comment out to remove L-Band functionality
30+
#define COMPILE_ESPNOW //Requires WiFi. Comment out to remove ESP-Now functionality.
31+
#define COMPILE_BT //Comment out to remove Bluetooth functionality
32+
#define COMPILE_L_BAND //Comment out to remove L-Band functionality
3333
#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:

Firmware/RTK_Surveyor/States.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,9 +596,8 @@ void updateSystemState()
596596
displayWiFiConfigNotStarted(); //Display immediately during SD cluster pause
597597

598598
bluetoothStop();
599-
#ifdef COMPILE_ESPNOW
600599
espnowStop();
601-
#endif
600+
602601
stopUART2Tasks(); //Delete F9 serial tasks if running
603602
startWebServer(); //Start in AP mode and show config html page
604603

0 commit comments

Comments
 (0)