mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
Fix after suggestions
This commit is contained in:
parent
6b8b819296
commit
422cc44137
2 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue