Remove distance sensor and esp32 always-true
This commit is contained in:
@@ -6,11 +6,9 @@
|
||||
#include "esphome/core/component.h"
|
||||
#include "esphome/core/defines.h"
|
||||
|
||||
#ifdef RATGDO_USE_DISTANCE_SENSOR
|
||||
#include "Wire.h"
|
||||
#include "vl53l4cx_class.h"
|
||||
#define I2C Wire
|
||||
#endif
|
||||
|
||||
namespace esphome::ratgdo {
|
||||
|
||||
@@ -23,17 +21,13 @@ class RATGDOSensor : public sensor::Sensor, public RATGDOClient, public Componen
|
||||
public:
|
||||
void dump_config() override;
|
||||
void setup() override;
|
||||
#ifdef RATGDO_USE_DISTANCE_SENSOR
|
||||
void loop() override;
|
||||
#endif
|
||||
void set_ratgdo_sensor_type(RATGDOSensorType ratgdo_sensor_type_) { this->ratgdo_sensor_type_ = ratgdo_sensor_type_; }
|
||||
|
||||
protected:
|
||||
RATGDOSensorType ratgdo_sensor_type_;
|
||||
|
||||
#ifdef RATGDO_USE_DISTANCE_SENSOR
|
||||
VL53L4CX distance_sensor_;
|
||||
#endif
|
||||
};
|
||||
|
||||
} // namespace esphome::ratgdo
|
||||
|
||||
Reference in New Issue
Block a user