Remove commented out and removed code

This commit is contained in:
2026-05-29 17:26:57 +00:00
parent 41507bb9d2
commit 2d8ff3aa22
5 changed files with 3 additions and 29 deletions
-1
View File
@@ -29,7 +29,6 @@ void RATGDOCover::on_door_state(DoorState state, float position)
if (!*this->parent_->synced || state == DoorState::UNKNOWN) { if (!*this->parent_->synced || state == DoorState::UNKNOWN) {
return; return;
} }
// ESP_LOGD("ON_DOOR_STATE", "%s %f", LOG_STR_ARG(DoorState_to_string(state)), position);
bool save_to_flash = true; bool save_to_flash = true;
switch (state) { switch (state) {
case DoorState::OPEN: case DoorState::OPEN:
+1 -12
View File
@@ -1,11 +1,4 @@
/************************************ /************************************
* Rage
* Against
* The
* Garage
* Door
* Opener
*
* Copyright (C) 2022 Paul Wieland * Copyright (C) 2022 Paul Wieland
* *
* GNU GENERAL PUBLIC LICENSE * 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 // initializing protocol, this gets called before setup() because
+1 -7
View File
@@ -1,11 +1,5 @@
/************************************ /************************************
* Rage
* Against
* The
* Garage
* Door
* Opener
*
* Copyright (C) 2022 Paul Wieland * Copyright (C) 2022 Paul Wieland
* *
* GNU GENERAL PUBLIC LICENSE * GNU GENERAL PUBLIC LICENSE
+1 -7
View File
@@ -1,11 +1,5 @@
/************************************ /************************************
* Rage
* Against
* The
* Garage
* Door
* Opener
*
* Copyright (C) 2022 Paul Wieland * Copyright (C) 2022 Paul Wieland
* *
* GNU GENERAL PUBLIC LICENSE * GNU GENERAL PUBLIC LICENSE
@@ -19,7 +19,6 @@ void RATGDOSensor::setup()
case RATGDOSensorType::RATGDO_DISTANCE: case RATGDOSensorType::RATGDO_DISTANCE:
this->distance_sensor_.setI2cDevice(&I2C); this->distance_sensor_.setI2cDevice(&I2C);
this->distance_sensor_.setXShutPin(32); this->distance_sensor_.setXShutPin(32);
// I2C.begin(17,16);
I2C.begin(19, 18); I2C.begin(19, 18);
this->distance_sensor_.begin(); this->distance_sensor_.begin();
this->distance_sensor_.VL53L4CX_Off(); this->distance_sensor_.VL53L4CX_Off();
@@ -75,7 +74,6 @@ void RATGDOSensor::loop()
if (maxDistance < 0) if (maxDistance < 0)
maxDistance = MAX_DISTANCE; 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 * 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 * vector with out of range data. The sensor should be sensitive enough to detect the floor