mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
Fix crash on unknown commands (cf==nullptr)
This commit is contained in:
@@ -413,7 +413,7 @@ void EMSESPShell::add_console_commands() {
|
||||
shell.println(F("Unknown command"));
|
||||
shell.print(F("Available commands are: "));
|
||||
Command::show(shell, device_type, false); // non-verbose mode
|
||||
} else if (cmd_return == CommandRet::ERROR) {
|
||||
} else if (cmd_return != CommandRet::OK) {
|
||||
shell.println(F("Bad syntax"));
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user