From 5ff44db8ddf79ab532595a246bd9b24d395f7d5c Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sat, 8 Feb 2025 02:41:09 +0300 Subject: [PATCH] Simplify WIFI_ENABLED macro test --- flix/flix.ino | 4 ++-- flix/mavlink.ino | 2 +- flix/wifi.ino | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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