From 3bec6efdc379f25ac698ed911f4e27d6d2398cb4 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 26 Sep 2025 22:10:41 -0500 Subject: [PATCH] optimize --- esphome/components/esphome/ota/ota_esphome.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/esphome/ota/ota_esphome.h b/esphome/components/esphome/ota/ota_esphome.h index b7491df752..7210d78fa9 100644 --- a/esphome/components/esphome/ota/ota_esphome.h +++ b/esphome/components/esphome/ota/ota_esphome.h @@ -64,14 +64,14 @@ class ESPHomeOTAComponent : public ota::OTAComponent { std::unique_ptr server_; std::unique_ptr client_; + std::unique_ptr backend_; - OTAState ota_state_{OTAState::IDLE}; uint32_t client_connect_time_{0}; uint16_t port_; uint8_t handshake_buf_[5]; + OTAState ota_state_{OTAState::IDLE}; uint8_t handshake_buf_pos_{0}; uint8_t ota_features_{0}; - std::unique_ptr backend_; }; } // namespace esphome