fix compilation errors (for targets which have no telemetry)

This commit is contained in:
mverch67
2025-05-24 18:01:47 +02:00
parent 3e3a55a971
commit bf21481bef
5 changed files with 5 additions and 4 deletions

View File

@@ -78,8 +78,8 @@ extern NullSensor ina3221Sensor;
#endif
#if HAS_TELEMETRY && !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR && !defined(ARCH_STM32WL)
#include "modules/Telemetry/Sensor/MAX17048Sensor.h"
#if __has_include(<Adafruit_MAX1704X.h>)
#include "modules/Telemetry/Sensor/MAX17048Sensor.h"
extern MAX17048Sensor max17048Sensor;
#else
extern NullSensor max17048Sensor;