meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.35k stars 816 forks source link

Minimized build fixes #4049

Closed Talie5in closed 3 months ago

Talie5in commented 3 months ago

Was working through configuration.h on the Minimized Builds options and was running into a couple of issues, so fixed up some minor changes to allow it to build correctly.

Made a minor changes to AdminModule.cpp to include modules/PositionModule.h when MESHTASTIC_EXCLUDE_GPS is defined. Made a minor change to WiFiAPClient.cpp to not attempt to reconnect MQTT if MESHTASTIC_EXCLUDE_MQTT is defined. Made a minor change to AdminModule.cpp to not attempt to check if MQTT is connected if MESHTASTIC_EXCUDE_MQTT is defined In MQTT.cpp moved #ifdef HAS_NETWORKING further up the function to catch when EXCLUDE_MESHTASTIC_WIFI is defined. In main-esp32.cpp created a ifndef and ifdef statement to have the right IF statement when EXCLUDE_MESHTASTIC_WIFI is defined.

No fixes for MESHTASTIC_EXCLUDE_MODULES as there are many to go through.

No issue to link, just cleaning up build issues for minimized builds.