add MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR exclusion to RCWL9620

This commit is contained in:
Oliver Seiler
2024-05-06 11:25:18 +12:00
parent 0afe2d459f
commit 2c30923e3e
2 changed files with 14 additions and 3 deletions
@@ -1,7 +1,10 @@
#include "configuration.h"
#if !MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR
#include "RCWL9620Sensor.h"
#include "../mesh/generated/meshtastic/telemetry.pb.h"
#include "TelemetrySensor.h"
#include "configuration.h"
RCWL9620Sensor::RCWL9620Sensor() : TelemetrySensor(meshtastic_TelemetrySensorType_RCWL9620, "RCWL9620") {}
@@ -57,4 +60,6 @@ float RCWL9620Sensor::getDistance()
} else {
return Distance;
}
}
}
#endif