1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-25 14:42:21 +01:00
This commit is contained in:
J. Nick Koston
2025-08-10 18:29:00 -05:00
parent 4bdf44bb78
commit 4faa9231a9

View File

@@ -182,7 +182,7 @@ void ESPHomeOTAComponent::handle_data_() {
// Read remaining 4 bytes of magic (we already read the first byte 0x6C in handle_handshake_) // Read remaining 4 bytes of magic (we already read the first byte 0x6C in handle_handshake_)
if (!this->readall_(buf, 4)) { if (!this->readall_(buf, 4)) {
ESP_LOGW(TAG, "Read magic bytes failed"); this->log_socket_error_("reading magic bytes");
goto error; // NOLINT(cppcoreguidelines-avoid-goto) goto error; // NOLINT(cppcoreguidelines-avoid-goto)
} }
// Check remaining magic bytes: 0x26, 0xF7, 0x5C, 0x45 // Check remaining magic bytes: 0x26, 0xF7, 0x5C, 0x45