Skip to content

Commit eed5bcf

Browse files
committed
Better debug prints during factory reset
1 parent 3b72457 commit eed5bcf

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Firmware/RTK_Everywhere/menuMain.ino

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,18 +505,27 @@ void factoryReset(bool alreadyHasSemaphore)
505505
// An error occurs when a settings file is on the microSD card and it is not
506506
// deleted, as such the settings on the microSD card will be loaded when the
507507
// RTK reboots, resulting in failure to achieve the factory reset condition
508-
log_d("sdCardSemaphore failed to yield, held by %s, menuMain.ino line %d\r\n", semaphoreHolder, __LINE__);
508+
systemPrintf("sdCardSemaphore failed to yield, held by %s, menuMain.ino line %d\r\n", semaphoreHolder, __LINE__);
509509
}
510510
}
511+
else
512+
{
513+
systemPrintln("microSD not online. Unable to delete settings files...");
514+
}
511515

512516
tiltSensorFactoryReset();
513517

514518
systemPrintln("Formatting internal file system...");
515519
LittleFS.format();
516520

517521
if (online.gnss == true)
522+
{
523+
systemPrintln("Resetting the GNSS to factory defaults. This could take a few seconds...");
518524
gnss->factoryReset();
519-
525+
}
526+
else
527+
systemPrintln("GNSS not online. Unable to factoryReset...");
528+
520529
systemPrintln("Settings erased successfully. Rebooting. Goodbye!");
521530
delay(2000);
522531
ESP.restart();

0 commit comments

Comments
 (0)