Removed trailing whitespaces

This commit is contained in:
xX7 2024-09-24 23:58:06 +02:00
parent 9ebd89dcea
commit 3c8f9aa369

View file

@ -189,7 +189,7 @@ void FeedbackCover::set_close_obstacle_sensor(binary_sensor::BinarySensor *close
if (state && (this->current_operation == COVER_OPERATION_CLOSING ||
this->current_trigger_operation_ == COVER_OPERATION_CLOSING)) {
ESP_LOGD(TAG, "'%s' - Obstacle collision detected while closing.", this->name_.c_str());
if (this->obstacle_rollback_) {
this->target_position_ = clamp(this->position + this->obstacle_rollback_, COVER_CLOSED, COVER_OPEN);
this->start_direction_(COVER_OPERATION_OPENING);
@ -207,7 +207,7 @@ void FeedbackCover::set_open_obstacle_sensor(binary_sensor::BinarySensor *open_o
if (state && (this->current_operation == COVER_OPERATION_OPENING ||
this->current_trigger_operation_ == COVER_OPERATION_OPENING)) {
ESP_LOGD(TAG, "'%s' - Obstacle collision detected while opening.", this->name_.c_str());
if (this->obstacle_rollback_) {
this->target_position_ = clamp(this->position - this->obstacle_rollback_, COVER_CLOSED, COVER_OPEN);
this->start_direction_(COVER_OPERATION_CLOSING);