From 2d8ff3aa225edbe809100e438cc018f4509420f5 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Fri, 29 May 2026 17:26:57 +0000 Subject: [PATCH] Remove commented out and removed code --- components/ratgdo/cover/ratgdo_cover.cpp | 1 - components/ratgdo/ratgdo.cpp | 13 +------------ components/ratgdo/ratgdo.h | 8 +------- components/ratgdo/ratgdo_state.h | 8 +------- components/ratgdo/sensor/ratgdo_sensor.cpp | 2 -- 5 files changed, 3 insertions(+), 29 deletions(-) diff --git a/components/ratgdo/cover/ratgdo_cover.cpp b/components/ratgdo/cover/ratgdo_cover.cpp index 24ba360..9a33f03 100644 --- a/components/ratgdo/cover/ratgdo_cover.cpp +++ b/components/ratgdo/cover/ratgdo_cover.cpp @@ -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: diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index d4b7059..e8a65c9 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -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 diff --git a/components/ratgdo/ratgdo.h b/components/ratgdo/ratgdo.h index fde140b..98ddec1 100644 --- a/components/ratgdo/ratgdo.h +++ b/components/ratgdo/ratgdo.h @@ -1,11 +1,5 @@ + /************************************ - * Rage - * Against - * The - * Garage - * Door - * Opener - * * Copyright (C) 2022 Paul Wieland * * GNU GENERAL PUBLIC LICENSE diff --git a/components/ratgdo/ratgdo_state.h b/components/ratgdo/ratgdo_state.h index 5ebc701..e68ac8a 100644 --- a/components/ratgdo/ratgdo_state.h +++ b/components/ratgdo/ratgdo_state.h @@ -1,11 +1,5 @@ + /************************************ - * Rage - * Against - * The - * Garage - * Door - * Opener - * * Copyright (C) 2022 Paul Wieland * * GNU GENERAL PUBLIC LICENSE diff --git a/components/ratgdo/sensor/ratgdo_sensor.cpp b/components/ratgdo/sensor/ratgdo_sensor.cpp index f42fae3..33f2805 100644 --- a/components/ratgdo/sensor/ratgdo_sensor.cpp +++ b/components/ratgdo/sensor/ratgdo_sensor.cpp @@ -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