mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Update esphome/components/waveshare_epaper/waveshare_epaper.cpp
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
d294d2d721
commit
6f1db1d3fb
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue