From 97396a2b130bac99dbd1000133b5529dcb3c8382 Mon Sep 17 00:00:00 2001 From: Rapsssito Date: Wed, 14 Aug 2024 14:33:22 +0200 Subject: [PATCH] Fix clang-format --- esphome/core/bytebuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/core/bytebuffer.cpp b/esphome/core/bytebuffer.cpp index 73cc2182ea..c2da23ade8 100644 --- a/esphome/core/bytebuffer.cpp +++ b/esphome/core/bytebuffer.cpp @@ -177,7 +177,7 @@ float ByteBuffer::get_float() { uint8_t byteArray[sizeof(float)]; if (this->endianness_ == LITTLE) { for (uint8_t &bytePart : byteArray) { - i = this->data_[this->position_++]; + bytePart = this->data_[this->position_++]; } } else { for (size_t i = sizeof(float); i > 0; i--) { @@ -193,7 +193,7 @@ double ByteBuffer::get_double() { uint8_t byteArray[sizeof(double)]; if (this->endianness_ == LITTLE) { for (uint8_t &bytePart : byteArray) { - i = this->data_[this->position_++]; + bytePart = this->data_[this->position_++]; } } else { for (size_t i = sizeof(double); i > 0; i--) {