exclude sensors when MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR set

This commit is contained in:
Oliver Seiler
2024-05-03 14:15:13 +12:00
parent 09080d76ad
commit be0e882be1
32 changed files with 148 additions and 21 deletions
@@ -1,3 +1,5 @@
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR
#include "BME680Sensor.h"
#include "../mesh/generated/meshtastic/telemetry.pb.h"
#include "FSCommon.h"
@@ -134,3 +136,5 @@ void BME680Sensor::checkStatus(String functionName)
else if (bme680.sensor.status > BME68X_OK)
LOG_WARN("%s BME68X code: %s\n", functionName.c_str(), String(bme680.sensor.status).c_str());
}
#endif