From f9fc438de8800428cb19230345861cd2d7c09adc Mon Sep 17 00:00:00 2001 From: NP v/d Spek Date: Thu, 6 Jul 2023 03:58:04 +0200 Subject: [PATCH] Fixed ili9xxx_display update() method (#5013) There was an obsolete `if` statement left over from an other implementation. --- esphome/components/ili9xxx/ili9xxx_display.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/esphome/components/ili9xxx/ili9xxx_display.cpp b/esphome/components/ili9xxx/ili9xxx_display.cpp index 82217f8e40..750f629db2 100644 --- a/esphome/components/ili9xxx/ili9xxx_display.cpp +++ b/esphome/components/ili9xxx/ili9xxx_display.cpp @@ -152,12 +152,10 @@ void ILI9XXXDisplay::update() { this->need_update_ = true; return; } + this->prossing_update_ = true; do { - this->prossing_update_ = true; this->need_update_ = false; - if (!this->need_update_) { - this->do_update_(); - } + this->do_update_(); } while (this->need_update_); this->prossing_update_ = false; this->display_();