mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 12:46:22 +01:00
Fix clang-format
This commit is contained in:
parent
869c495d57
commit
97396a2b13
@ -177,7 +177,7 @@ float ByteBuffer::get_float() {
|
|||||||
uint8_t byteArray[sizeof(float)];
|
uint8_t byteArray[sizeof(float)];
|
||||||
if (this->endianness_ == LITTLE) {
|
if (this->endianness_ == LITTLE) {
|
||||||
for (uint8_t &bytePart : byteArray) {
|
for (uint8_t &bytePart : byteArray) {
|
||||||
i = this->data_[this->position_++];
|
bytePart = this->data_[this->position_++];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (size_t i = sizeof(float); i > 0; i--) {
|
for (size_t i = sizeof(float); i > 0; i--) {
|
||||||
@ -193,7 +193,7 @@ double ByteBuffer::get_double() {
|
|||||||
uint8_t byteArray[sizeof(double)];
|
uint8_t byteArray[sizeof(double)];
|
||||||
if (this->endianness_ == LITTLE) {
|
if (this->endianness_ == LITTLE) {
|
||||||
for (uint8_t &bytePart : byteArray) {
|
for (uint8_t &bytePart : byteArray) {
|
||||||
i = this->data_[this->position_++];
|
bytePart = this->data_[this->position_++];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (size_t i = sizeof(double); i > 0; i--) {
|
for (size_t i = sizeof(double); i > 0; i--) {
|
||||||
|
Loading…
Reference in New Issue
Block a user