diff --git a/esphome/components/waveshare_epaper/waveshare_epaper.cpp b/esphome/components/waveshare_epaper/waveshare_epaper.cpp index 934d9c75d1..ec0c31700e 100644 --- a/esphome/components/waveshare_epaper/waveshare_epaper.cpp +++ b/esphome/components/waveshare_epaper/waveshare_epaper.cpp @@ -1707,7 +1707,7 @@ void HOT GDEY075Z08::display() { return; } ESP_LOGD(TAG, "Found a change, initializing display for partial backup"); - unsigned int x_start, y_start, x_end, y_end, x_start_b, x_end_b; + uint16_t x_start, y_start, x_end, y_end, x_start_b, x_end_b; x_start = (this->get_width_internal() / seg_x_) * first_segment_x_; x_end = (this->get_width_internal() / seg_x_) * (last_segment_x_ + 1); y_start = (this->get_height_internal() / seg_y_) * first_segment_y_; diff --git a/esphome/components/waveshare_epaper/waveshare_epaper.h b/esphome/components/waveshare_epaper/waveshare_epaper.h index 8ba212baa2..0627947d7e 100644 --- a/esphome/components/waveshare_epaper/waveshare_epaper.h +++ b/esphome/components/waveshare_epaper/waveshare_epaper.h @@ -255,7 +255,7 @@ class GDEY075Z08 : public WaveshareEPaperBWR { uint16_t last_segment_x_ = 0; uint16_t last_segment_y_ = 0; uint16_t *checksums_ = nullptr; - void calculate_crcs_(bool fullSync); + void calculate_crcs_(bool full_sync); bool waiting_for_idle_ = false; uint32_t idle_timeout_() override; void reset_();