Truncated division because its faster

This commit is contained in:
Scott Shawcroft 2018-08-09 12:00:28 -07:00 committed by GitHub
parent c2a05b64ab
commit fd8672b292
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,7 +174,7 @@ class Adafruit_IL0373(Adafruit_EPD):
if x == 0:
x = 1
addr = int(((self.width - x) * self.height + y)/8)
addr = ((self.width - x) * self.height + y) // 8
if color == Adafruit_EPD.RED:
addr = addr + self.bw_bufsize
current = self.sram.read8(addr)