fix build with HAS_TELEMETRY 0 (#8051)

This commit is contained in:
Markus
2025-09-20 06:34:47 -05:00
committed by Ben Meadors
co-authored by Ben Meadors
parent 6f56ccd283
commit 44968415a5
+1 -1
View File
@@ -241,7 +241,7 @@ void setupModules()
#if HAS_TELEMETRY
new DeviceTelemetryModule();
#endif
#if HAS_SENSOR && !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR
#if HAS_TELEMETRY && HAS_SENSOR && !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR
if (moduleConfig.has_telemetry &&
(moduleConfig.telemetry.environment_measurement_enabled || moduleConfig.telemetry.environment_screen_enabled)) {
new EnvironmentTelemetryModule();