exclude sensors when MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR set

This commit is contained in:
Oliver Seiler
2024-04-27 18:05:39 +12:00
parent 09080d76ad
commit be0e882be1
32 changed files with 148 additions and 21 deletions

View File

@@ -1,3 +1,5 @@
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR
#include "../mesh/generated/meshtastic/telemetry.pb.h"
#include "TelemetrySensor.h"
#include <Adafruit_MCP9808.h>
@@ -14,4 +16,6 @@ class MCP9808Sensor : public TelemetrySensor
MCP9808Sensor();
virtual int32_t runOnce() override;
virtual bool getMetrics(meshtastic_Telemetry *measurement) override;
};
};
#endif