Dont keep logging on improv start (#4401)

This commit is contained in:
Jesse Hills 2023-02-09 10:25:57 +13:00 committed by GitHub
parent ac6693f177
commit a9dc491a54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,7 +195,7 @@ void ESP32ImprovComponent::send_response_(std::vector<uint8_t> &response) {
}
void ESP32ImprovComponent::start() {
if (this->state_ != improv::STATE_STOPPED)
if (this->should_start_ || this->state_ != improv::STATE_STOPPED)
return;
ESP_LOGD(TAG, "Setting Improv to start");