Formatting

This commit is contained in:
Neil 2024-03-16 16:44:44 +01:00 committed by NeilSCGH
parent 58b0d28904
commit e6dc8f9910

View file

@ -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|