Skip to content

Commit 29450d9

Browse files
committed
Remove redundant comments
1 parent f554801 commit 29450d9

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

Firmware/RTK_Surveyor/NVM.ino

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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);

Firmware/RTK_Surveyor/menuBase.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,7 @@ bool getFileLineSD(const char* fileName, int lineToFind, char* lineData, int lin
428428
while (file.available())
429429
{
430430
//Get the next line from the file
431-
//int n = getLine(&file, lineData, lineDataLength); //Use with SD library
432-
int n = file.fgets(lineData, lineDataLength); //Use with SdFat library
431+
int n = file.fgets(lineData, lineDataLength);
433432
if (n <= 0)
434433
{
435434
systemPrintf("Failed to read line %d from settings file\r\n", lineNumber);
@@ -466,7 +465,7 @@ bool getFileLineSD(const char* fileName, int lineToFind, char* lineData, int lin
466465
while (file.available())
467466
{
468467
//Get the next line from the file
469-
int n = getLine(&file, lineData, lineDataLength); //Use with SD_MMC File library
468+
int n = getLine(&file, lineData, lineDataLength);
470469
if (n <= 0)
471470
{
472471
systemPrintf("Failed to read line %d from settings file\r\n", lineNumber);

0 commit comments

Comments
 (0)