From e6dc8f99108b239696e9cf5a6924412ab3c25d76 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 16 Mar 2024 16:44:44 +0100 Subject: [PATCH] Formatting --- esphome/components/waveshare_epaper/waveshare_epaper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/waveshare_epaper/waveshare_epaper.cpp b/esphome/components/waveshare_epaper/waveshare_epaper.cpp index e585d44c7a..44e1954a62 100644 --- a/esphome/components/waveshare_epaper/waveshare_epaper.cpp +++ b/esphome/components/waveshare_epaper/waveshare_epaper.cpp @@ -2616,7 +2616,7 @@ void HOT WaveshareEPaper7P3InF::display() { uint8_t byte_to_send; for (auto &buffer : this->buffers_) { for (uint32_t buffer_pos = 0; buffer_pos < small_buffer_length; buffer_pos += 3) { - std::bitset<24> triplet = + std::bitset<24> triplet = buffer[buffer_pos + 0] << 16 | buffer[buffer_pos + 1] << 8 | buffer[buffer_pos + 2] << 0; // 8 bitset<3> are stored in 3 bytes // |aaabbbaa|abbbaaab|bbaaabbb|