Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Fix firmware build with Wi-Fi disabled

Oleg Kalachev60fbe1c45012
diff --git a/flix/parameters.ino b/flix/parameters.ino
index 875b0e4..80adeb3 100644
--- a/flix/parameters.ino
+++ b/flix/parameters.ino
@@ -68,8 +68,10 @@ Parameter parameters[] = {
{"RC_MAX_5", &channelMax[5]},
{"RC_MAX_6", &channelMax[6]},
{"RC_MAX_7", &channelMax[7]},
+#if WIFI_ENABLED == 1
// MAVLink
{"MAV_CTRL_SCALE", &mavlinkControlScale},
+#endif
};
void setupParameters() {