mirror of
https://github.com/esphome/esphome.git
synced 2024-12-28 00:11:43 +01:00
Fix clang-format
This commit is contained in:
parent
869c495d57
commit
97396a2b13
1 changed files with 2 additions and 2 deletions
|
@ -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--) {
|
||||
|
|
Loading…
Reference in a new issue