From c729c4400adefba23c7e804e922a49625eab1e72 Mon Sep 17 00:00:00 2001 From: Ronan Gaillard Date: Sun, 27 Oct 2019 13:32:47 +0100 Subject: [PATCH] Fix implicit casting --- RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py index 8c8f09a..25818d8 100644 --- a/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py +++ b/RaspberryPi&JetsonNano/python/lib/waveshare_epd/epd1in54_V2.py @@ -181,7 +181,7 @@ class EPD: self.send_command(0x26) for j in range(0, self.height): - for i in range(0, self.width / 8): + for i in range(0, int(self.width / 8)): self.send_data(image[i + j * int(self.width / 8)]) self.TurnOnDisplayPart()