diff --git a/flix/flix.ino b/flix/flix.ino index d93cf5d..ba32e10 100644 --- a/flix/flix.ino +++ b/flix/flix.ino @@ -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(); diff --git a/flix/mavlink.ino b/flix/mavlink.ino index 3304f25..5c11289 100644 --- a/flix/mavlink.ino +++ b/flix/mavlink.ino @@ -3,7 +3,7 @@ // MAVLink communication -#if WIFI_ENABLED == 1 +#if WIFI_ENABLED #include diff --git a/flix/wifi.ino b/flix/wifi.ino index 5516249..5343433 100644 --- a/flix/wifi.ino +++ b/flix/wifi.ino @@ -3,7 +3,7 @@ // Wi-Fi support -#if WIFI_ENABLED == 1 +#if WIFI_ENABLED #include #include