From 6f1db1d3fb14d31857b3e0e023a25bdaddffcf7e Mon Sep 17 00:00:00 2001 From: Johannes Date: Tue, 13 Aug 2024 22:14:37 +0200 Subject: [PATCH] Update esphome/components/waveshare_epaper/waveshare_epaper.cpp Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- esphome/components/waveshare_epaper/waveshare_epaper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/waveshare_epaper/waveshare_epaper.cpp b/esphome/components/waveshare_epaper/waveshare_epaper.cpp index ec0c31700e..fb9fd14e00 100644 --- a/esphome/components/waveshare_epaper/waveshare_epaper.cpp +++ b/esphome/components/waveshare_epaper/waveshare_epaper.cpp @@ -1534,8 +1534,8 @@ void GDEY075Z08::calculate_crcs_(bool full_sync) { uint16_t segment_position = x + y * width_b; // linear position inside the segment in bytes uint16_t global_position = seg_y * height_px * this->get_width_internal() / 8 + y * this->get_width_internal() / 8 + seg_x * width_b + x; - segment[segment_position] = buffer_[global_position]; // copy black data - segment[segment_position + segment_size] = buffer_[global_position + buffer_half_size]; // copy red data + segment[segment_position] = this->buffer_[global_position]; // copy black data + segment[segment_position + segment_size] = this->buffer_[global_position + buffer_half_size]; // copy red data } } // now calculate a CRC16_checksum and compare it against the stored value.