mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 09:39:33 +00:00
Add missing const qualifiers
This commit is contained in:
parent
f456e10177
commit
48d21a911f
@ -37,7 +37,7 @@ const char* motd =
|
||||
"reset - reset drone's state\n"
|
||||
"reboot - reboot the drone\n";
|
||||
|
||||
void doCommand(String& command, String& arg0, String& arg1) {
|
||||
void doCommand(const String& command, const String& arg0, const String& arg1) {
|
||||
if (command == "help" || command == "motd") {
|
||||
Serial.println(motd);
|
||||
} else if (command == "p" && arg0 == "") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user