Skip to content

Commit d91d173

Browse files
committed
Change debug print to use platform prefix.
1 parent 7797849 commit d91d173

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Firmware/RTK_Surveyor/Begin.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ void beginSD()
161161
//Max current is 200mA average across 1s, peak 300mA
162162
delay(10);
163163

164-
// if (sd.begin(SdSpiConfig(pin_microSD_CS, DEDICATED_SPI, SD_SCK_MHZ(settings.spiFrequency))) == false)
165164
if (sd.begin(SdSpiConfig(pin_microSD_CS, SHARED_SPI, SD_SCK_MHZ(settings.spiFrequency))) == false)
166165
{
167166
int tries = 0;
@@ -171,7 +170,6 @@ void beginSD()
171170
Serial.printf("SD init failed. Trying again %d out of %d\n\r", tries + 1, maxTries);
172171

173172
delay(250); //Give SD more time to power up, then try again
174-
// if (sd.begin(SdSpiConfig(pin_microSD_CS, DEDICATED_SPI, SD_SCK_MHZ(settings.spiFrequency))) == true) break;
175173
if (sd.begin(SdSpiConfig(pin_microSD_CS, SHARED_SPI, SD_SCK_MHZ(settings.spiFrequency))) == true) break;
176174
}
177175

Firmware/RTK_Surveyor/NVM.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ void loadSettings()
3434
EEPROM.get(sizeof(int), tempIdentifier); //Load the identifier from the EEPROM location after sizeOfSettings (int)
3535
if (tempIdentifier != RTK_IDENTIFIER)
3636
{
37-
Serial.println(F("Settings are not valid for this variant of RTK Surveyor. Default settings applied"));
37+
Serial.printf("Settings are not valid for this variant of RTK %s. Default settings applied.\n\r", platformPrefix);
3838
recordSystemSettings(); //Record default settings to EEPROM and config file. At power on, settings are in default state
3939
}
4040

Firmware/RTK_Surveyor/settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ struct struct_settings {
293293
uint8_t resetCount = 0;
294294
} settings;
295295

296-
//These are the devices on board RTK Surveyor that may be on or offline.
296+
//Monitor which devices on the device are on or offline.
297297
struct struct_online {
298298
bool microSD = false;
299299
bool display = false;

0 commit comments

Comments
 (0)