mirror of
https://github.com/okalachev/flix.git
synced 2026-02-18 08:02:36 +00:00
Simplify WIFI_ENABLED macro test
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user