Formatting

This commit is contained in:
Neil 2024-03-16 00:41:53 +01:00 committed by NeilSCGH
parent 7d6622be61
commit 208edf543a

View file

@ -2615,6 +2615,7 @@ void HOT WaveshareEPaper7P3InF::display() {
this->command(0x10);
uint32_t small_buffer_length = this->get_buffer_length_() / NUM_BUFFERS;
uint8_t byte_to_send;
for (int buffer_index = 0; buffer_index < NUM_BUFFERS; buffer_index++) {
for (uint32_t buffer_pos = 0; buffer_pos < small_buffer_length; buffer_pos += 3) {
std::bitset<24> triplet = this->buffers_[buffer_index][buffer_pos + 0] << 16 |
this->buffers_[buffer_index][buffer_pos + 1] << 8 |