mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2025-12-22 07:10:47 -08:00
Fix SD macros and indentation
This commit is contained in:
@@ -292,17 +292,17 @@ void CommandLine::runCommand(String input) {
|
||||
#endif
|
||||
}
|
||||
// ls command
|
||||
else if (cmd_args.get(0) == LS_CMD) {
|
||||
#ifdef HAS_SD
|
||||
if (cmd_args.size() > 1)
|
||||
sd_obj.listDir(cmd_args.get(1));
|
||||
else
|
||||
Serial.println("You did not provide a dir to list");
|
||||
#else
|
||||
Serial.println("SD support disabled, cannot use command");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
else if (cmd_args.get(0) == LS_CMD) {
|
||||
#ifdef HAS_SD
|
||||
if (cmd_args.size() > 1)
|
||||
sd_obj.listDir(cmd_args.get(1));
|
||||
else
|
||||
Serial.println("You did not provide a dir to list");
|
||||
#else
|
||||
Serial.println("SD support disabled, cannot use command");
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
|
||||
// Channel command
|
||||
else if (cmd_args.get(0) == CH_CMD) {
|
||||
|
||||
Reference in New Issue
Block a user