1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-09 13:23:47 +01:00

[waveshare_epaper] Fix clang-tidy sign comparison errors (#11079)

This commit is contained in:
J. Nick Koston
2025-10-06 14:14:28 -05:00
committed by GitHub
parent a3c0acc7c9
commit 59a31adac2

View File

@@ -2274,11 +2274,11 @@ void GDEW0154M09::clear_() {
uint32_t pixsize = this->get_buffer_length_(); uint32_t pixsize = this->get_buffer_length_();
for (uint8_t j = 0; j < 2; j++) { for (uint8_t j = 0; j < 2; j++) {
this->command(CMD_DTM1_DATA_START_TRANS); this->command(CMD_DTM1_DATA_START_TRANS);
for (int count = 0; count < pixsize; count++) { for (uint32_t count = 0; count < pixsize; count++) {
this->data(0x00); this->data(0x00);
} }
this->command(CMD_DTM2_DATA_START_TRANS2); this->command(CMD_DTM2_DATA_START_TRANS2);
for (int count = 0; count < pixsize; count++) { for (uint32_t count = 0; count < pixsize; count++) {
this->data(0xff); this->data(0xff);
} }
this->command(CMD_DISPLAY_REFRESH); this->command(CMD_DISPLAY_REFRESH);
@@ -2291,11 +2291,11 @@ void HOT GDEW0154M09::display() {
this->init_internal_(); this->init_internal_();
// "Mode 0 display" for now // "Mode 0 display" for now
this->command(CMD_DTM1_DATA_START_TRANS); this->command(CMD_DTM1_DATA_START_TRANS);
for (int i = 0; i < this->get_buffer_length_(); i++) { for (uint32_t i = 0; i < this->get_buffer_length_(); i++) {
this->data(0xff); this->data(0xff);
} }
this->command(CMD_DTM2_DATA_START_TRANS2); // write 'new' data to SRAM this->command(CMD_DTM2_DATA_START_TRANS2); // write 'new' data to SRAM
for (int i = 0; i < this->get_buffer_length_(); i++) { for (uint32_t i = 0; i < this->get_buffer_length_(); i++) {
this->data(this->buffer_[i]); this->data(this->buffer_[i]);
} }
this->command(CMD_DISPLAY_REFRESH); this->command(CMD_DISPLAY_REFRESH);