Simplify WIFI_ENABLED macro test

This commit is contained in:
Oleg Kalachev
2025-02-08 02:41:09 +03:00
parent 33adf33f0e
commit 3ed4143ba0
4 changed files with 5 additions and 5 deletions

View File

@@ -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();