mirror of
https://github.com/esphome/esphome.git
synced 2025-10-09 05:13:48 +01:00
[waveshare_epaper] Fix clang-tidy sign comparison errors (#11079)
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user