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|