mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 08:38:39 +00:00
Call the constexpr backend capability through the type
This commit is contained in:
@@ -295,8 +295,8 @@ void ESPHomeOTAComponent::handle_handshake_() {
|
||||
|
||||
this->transition_ota_state_(OTAState::FEATURE_ACK);
|
||||
|
||||
const bool supports_compression =
|
||||
(this->ota_features_ & CLIENT_FEATURE_SUPPORTS_COMPRESSION) != 0 && this->backend_->supports_compression();
|
||||
const bool supports_compression = (this->ota_features_ & CLIENT_FEATURE_SUPPORTS_COMPRESSION) != 0 &&
|
||||
ota::OTABackendPtr::element_type::supports_compression();
|
||||
|
||||
// Compose the feature-ack response. When the client negotiates the extended protocol we emit
|
||||
// a 2-byte response (marker + server feature flags); otherwise we emit the single-byte
|
||||
|
||||
Reference in New Issue
Block a user