fix for MESHTASTIC_EXCLUDE_INPUTBROKER

This commit is contained in:
mverch67
2024-06-17 20:17:56 +02:00
parent 5d2f7d1962
commit 9d8a5221a9
6 changed files with 20 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
#pragma once
#include "configuration.h"
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR
#include "../mesh/generated/meshtastic/telemetry.pb.h"
#include "TelemetrySensor.h"
#include <ClosedCube_OPT3001.h>
@@ -14,4 +19,6 @@ class OPT3001Sensor : public TelemetrySensor
OPT3001Sensor();
virtual int32_t runOnce() override;
virtual bool getMetrics(meshtastic_Telemetry *measurement) override;
};
};
#endif