mirror of
https://github.com/okalachev/flix.git
synced 2025-07-29 20:38:59 +00:00
Simplify WIFI_ENABLED macro test
This commit is contained in:
parent
2b15812483
commit
5ff44db8dd
@ -34,7 +34,7 @@ void setup() {
|
||||
setupLED();
|
||||
setupMotors();
|
||||
setLED(true);
|
||||
#if WIFI_ENABLED == 1
|
||||
#if WIFI_ENABLED
|
||||
setupWiFi();
|
||||
#endif
|
||||
setupIMU();
|
||||
@ -51,7 +51,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>
|
||||
|
||||
|
@ -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