Remove commented out and removed code
This commit is contained in:
@@ -29,7 +29,6 @@ void RATGDOCover::on_door_state(DoorState state, float position)
|
||||
if (!*this->parent_->synced || state == DoorState::UNKNOWN) {
|
||||
return;
|
||||
}
|
||||
// ESP_LOGD("ON_DOOR_STATE", "%s %f", LOG_STR_ARG(DoorState_to_string(state)), position);
|
||||
bool save_to_flash = true;
|
||||
switch (state) {
|
||||
case DoorState::OPEN:
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
/************************************
|
||||
* Rage
|
||||
* Against
|
||||
* The
|
||||
* Garage
|
||||
* Door
|
||||
* Opener
|
||||
*
|
||||
* Copyright (C) 2022 Paul Wieland
|
||||
*
|
||||
* GNU GENERAL PUBLIC LICENSE
|
||||
@@ -63,11 +56,7 @@ void RATGDOComponent::setup()
|
||||
}
|
||||
});
|
||||
|
||||
ESP_LOGD(TAG, " _____ _____ _____ _____ ____ _____ ");
|
||||
ESP_LOGD(TAG, "| __ | _ |_ _| __| \\| |");
|
||||
ESP_LOGD(TAG, "| -| | | | | | | | | | |");
|
||||
ESP_LOGD(TAG, "|__|__|__|__| |_| |_____|____/|_____|");
|
||||
ESP_LOGD(TAG, "https://paulwieland.github.io/ratgdo/");
|
||||
|
||||
}
|
||||
|
||||
// initializing protocol, this gets called before setup() because
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
|
||||
/************************************
|
||||
* Rage
|
||||
* Against
|
||||
* The
|
||||
* Garage
|
||||
* Door
|
||||
* Opener
|
||||
*
|
||||
* Copyright (C) 2022 Paul Wieland
|
||||
*
|
||||
* GNU GENERAL PUBLIC LICENSE
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
|
||||
/************************************
|
||||
* Rage
|
||||
* Against
|
||||
* The
|
||||
* Garage
|
||||
* Door
|
||||
* Opener
|
||||
*
|
||||
* Copyright (C) 2022 Paul Wieland
|
||||
*
|
||||
* GNU GENERAL PUBLIC LICENSE
|
||||
|
||||
@@ -19,7 +19,6 @@ void RATGDOSensor::setup()
|
||||
case RATGDOSensorType::RATGDO_DISTANCE:
|
||||
this->distance_sensor_.setI2cDevice(&I2C);
|
||||
this->distance_sensor_.setXShutPin(32);
|
||||
// I2C.begin(17,16);
|
||||
I2C.begin(19, 18);
|
||||
this->distance_sensor_.begin();
|
||||
this->distance_sensor_.VL53L4CX_Off();
|
||||
@@ -75,7 +74,6 @@ void RATGDOSensor::loop()
|
||||
if (maxDistance < 0)
|
||||
maxDistance = MAX_DISTANCE;
|
||||
|
||||
// maxDistance = objCount == 0 ? -1 : pDistanceData->RangeData[objCount - 1].RangeMilliMeter;
|
||||
/*
|
||||
* if the sensor is pointed at glass, there are many error -1 readings which will fill the
|
||||
* vector with out of range data. The sensor should be sensitive enough to detect the floor
|
||||
|
||||
Reference in New Issue
Block a user