mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
Merge pull request #2279 from olliwr/mega
Fixed compile errors that occurred when FEATURE_SD is defined.
This commit is contained in:
+3
-3
@@ -122,7 +122,7 @@ String doExecuteCommand(const char * cmd, struct EventStruct *event, const char*
|
||||
}
|
||||
case 's': {
|
||||
COMMAND_CASE("save" , Command_Settings_Save); // Settings.h
|
||||
#if FEATURE_SD
|
||||
#ifdef FEATURE_SD
|
||||
COMMAND_CASE("sdcard" , Command_SD_LS); // SDCARDS.h
|
||||
COMMAND_CASE("sdremove" , Command_SD_Remove); // SDCARDS.h
|
||||
#endif
|
||||
@@ -258,7 +258,7 @@ void printDirectory(File dir, int numTabs)
|
||||
break;
|
||||
}
|
||||
for (uint8_t i = 0; i < numTabs; i++) {
|
||||
serialPrint('\t');
|
||||
serialPrint("\t");
|
||||
}
|
||||
serialPrint(entry.name());
|
||||
if (entry.isDirectory()) {
|
||||
@@ -267,7 +267,7 @@ void printDirectory(File dir, int numTabs)
|
||||
} else {
|
||||
// files have sizes, directories do not
|
||||
serialPrint("\t\t");
|
||||
serialPrintln(entry.size(), DEC);
|
||||
serialPrintln(String(entry.size(), DEC));
|
||||
}
|
||||
entry.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user