Fix crash on unknown commands (cf==nullptr)

This commit is contained in:
MichaelDvP
2021-07-22 19:35:27 +02:00
parent f2e0b193af
commit 6d94335079
4 changed files with 20 additions and 18 deletions

View File

@@ -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"));
}
},