mirror of
https://github.com/okalachev/flix.git
synced 2026-01-10 21:16:50 +00:00
Simplify WIFI_ENABLED macro test
This commit is contained in:
@@ -34,7 +34,7 @@ void setup() {
|
|||||||
setupLED();
|
setupLED();
|
||||||
setupMotors();
|
setupMotors();
|
||||||
setLED(true);
|
setLED(true);
|
||||||
#if WIFI_ENABLED == 1
|
#if WIFI_ENABLED
|
||||||
setupWiFi();
|
setupWiFi();
|
||||||
#endif
|
#endif
|
||||||
setupIMU();
|
setupIMU();
|
||||||
@@ -51,7 +51,7 @@ void loop() {
|
|||||||
control();
|
control();
|
||||||
sendMotors();
|
sendMotors();
|
||||||
parseInput();
|
parseInput();
|
||||||
#if WIFI_ENABLED == 1
|
#if WIFI_ENABLED
|
||||||
processMavlink();
|
processMavlink();
|
||||||
#endif
|
#endif
|
||||||
logData();
|
logData();
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
// MAVLink communication
|
// MAVLink communication
|
||||||
|
|
||||||
#if WIFI_ENABLED == 1
|
#if WIFI_ENABLED
|
||||||
|
|
||||||
#include <MAVLink.h>
|
#include <MAVLink.h>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
// Wi-Fi support
|
// Wi-Fi support
|
||||||
|
|
||||||
#if WIFI_ENABLED == 1
|
#if WIFI_ENABLED
|
||||||
|
|
||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
#include <WiFiAP.h>
|
#include <WiFiAP.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user