Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Add missing const qualifiers

Oleg Kalachev48d21a911f61
diff --git a/flix/cli.ino b/flix/cli.ino
index 3749863..7b777a9 100644
--- a/flix/cli.ino
+++ b/flix/cli.ino
@@ -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 == "") {