mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 09:39:33 +00:00
Simplify WIFI_ENABLED macro test
This commit is contained in:
parent
33adf33f0e
commit
3ed4143ba0
@ -28,7 +28,7 @@ void setup() {
|
||||
setupLED();
|
||||
setupMotors();
|
||||
setLED(true);
|
||||
#if WIFI_ENABLED == 1
|
||||
#if WIFI_ENABLED
|
||||
setupWiFi();
|
||||
#endif
|
||||
setupIMU();
|
||||
@ -45,7 +45,7 @@ void loop() {
|
||||
control();
|
||||
sendMotors();
|
||||
parseInput();
|
||||
#if WIFI_ENABLED == 1
|
||||
#if WIFI_ENABLED
|
||||
processMavlink();
|
||||
#endif
|
||||
logData();
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
// MAVLink communication
|
||||
|
||||
#if WIFI_ENABLED == 1
|
||||
#if WIFI_ENABLED
|
||||
|
||||
#include <MAVLink.h>
|
||||
|
||||
|
@ -68,7 +68,7 @@ Parameter parameters[] = {
|
||||
{"RC_MAX_5", &channelMax[5]},
|
||||
{"RC_MAX_6", &channelMax[6]},
|
||||
{"RC_MAX_7", &channelMax[7]},
|
||||
#if WIFI_ENABLED == 1
|
||||
#if WIFI_ENABLED
|
||||
// MAVLink
|
||||
{"MAV_CTRL_SCALE", &mavlinkControlScale},
|
||||
#endif
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
// Wi-Fi support
|
||||
|
||||
#if WIFI_ENABLED == 1
|
||||
#if WIFI_ENABLED
|
||||
|
||||
#include <WiFi.h>
|
||||
#include <WiFiAP.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user