@@ -391,8 +391,7 @@ bool loadSystemSettingsFromFileSD(char* fileName, Settings *settings)
391391 while (settingsFile.available ())
392392 {
393393 // Get the next line from the file
394- // int n = getLine(&settingsFile, line, sizeof(line)); //Use with SD library
395- int n = settingsFile.fgets (line, sizeof (line)); // Use with SdFat library
394+ int n = settingsFile.fgets (line, sizeof (line));
396395 if (n <= 0 ) {
397396 systemPrintf (" Failed to read line %d from settings file\r\n " , lineNumber);
398397 }
@@ -446,7 +445,7 @@ bool loadSystemSettingsFromFileSD(char* fileName, Settings *settings)
446445 while (settingsFile.available ())
447446 {
448447 // Get the next line from the file
449- int n = getLine (&settingsFile, line, sizeof (line)); // Use with SD_MMC File library
448+ int n = getLine (&settingsFile, line, sizeof (line));
450449 if (n <= 0 ) {
451450 systemPrintf (" Failed to read line %d from settings file\r\n " , lineNumber);
452451 }
@@ -520,11 +519,10 @@ bool loadSystemSettingsFromFileLFS(char* fileName, Settings *settings)
520519 // Get the next line from the file
521520 int n;
522521 if (USE_SPI_MICROSD)
523- n = getLine (&settingsFile, line, sizeof (line)); // Use with SD library
524- // int n = settingsFile.fgets(line, sizeof(line)); //Use with SdFat library
522+ n = getLine (&settingsFile, line, sizeof (line));
525523#ifdef COMPILE_SD_MMC
526524 else
527- n = getLine (&settingsFile, line, sizeof (line)); // We are using File from FS.h
525+ n = getLine (&settingsFile, line, sizeof (line));
528526#endif
529527 if (n <= 0 ) {
530528 systemPrintf (" Failed to read line %d from settings file\r\n " , lineNumber);
0 commit comments