Fix after suggestions

This commit is contained in:
programmingbgloDE 2024-09-06 06:56:52 +02:00
parent 6b8b819296
commit 422cc44137
2 changed files with 1 additions and 4 deletions

View file

@ -27,11 +27,9 @@ WaveshareEPaperBWR = waveshare_epaper_ns.class_(
WaveshareEPaperTypeA = waveshare_epaper_ns.class_(
"WaveshareEPaperTypeA", WaveshareEPaper
)
WaveshareEpaper1P54INBV2 = waveshare_epaper_ns.class_(
"WaveshareEPaper1P54InBV2", WaveshareEPaperBWR
)
WaveshareEPaper2P7In = waveshare_epaper_ns.class_(
"WaveshareEPaper2P7In", WaveshareEPaper
)

View file

@ -154,8 +154,7 @@ bool WaveshareEPaperBase::wait_until_idle_() {
}
const uint32_t start = millis();
while (bool test = this->busy_pin_->digital_read()) {
while (this->busy_pin_->digital_read()) {
if (millis() - start > this->idle_timeout_()) {
ESP_LOGE(TAG, "Timeout while displaying image!");
return false;