From 0871147bb70fb5d78287f4cd9ea388c5842b340b Mon Sep 17 00:00:00 2001 From: tkameroski <76920240+tkameroski@users.noreply.github.com> Date: Mon, 30 Aug 2021 11:17:16 -0400 Subject: [PATCH] Update epd7in5_V2.py --- .../python/lib/waveshare_epd/epd7in5_V2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py index d7f1e67..9b382d0 100644 --- a/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py +++ b/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd7in5_V2.py @@ -130,12 +130,12 @@ class EPD: def ReadBusy(self): logger.debug("e-Paper busy") # self.send_command(0x71) - count = 0 + iter = 0 while epdconfig.digital_read(self.busy_pin) == 0: # self.send_command(0x71) epdconfig.delay_ms(100) - count += 1 - if count > 150: + iter += 1 + if iter > 150: logger.info("Forced e-paper busy release") break logger.debug("e-Paper busy release")