set last obstruction state

This commit is contained in:
Paul Wieland 2024-07-11 18:01:23 -04:00
parent 0568544ae8
commit 83a284ebb0
1 changed files with 1 additions and 0 deletions

View File

@ -221,6 +221,7 @@ namespace ratgdo {
if (!this->obstruction_sensor_detected_) {
if(obstruction_state != last_state){
ESP_LOGD(TAG, "Obstruction: state=%s", ObstructionState_to_string(*this->obstruction_state));
last_state = obstruction_state;
}
this->obstruction_state = obstruction_state;