Make cli command case insensitive

iOS QGC capitalizes the command by default, so it's more convinient
This commit is contained in:
Oleg Kalachev
2025-05-10 05:15:54 +03:00
parent df2b10acd4
commit 2bcab6edb3
2 changed files with 6 additions and 0 deletions

View File

@@ -78,6 +78,8 @@ void doCommand(String str, bool echo = false) {
print("> %s\n", str.c_str());
}
command.toLowerCase();
// execute command
if (command == "help" || command == "motd") {
print("%s\n", motd);