Merge pull request #4 from adafruit/tannewt-patch-1

Truncated division because its faster
This commit is contained in:
Scott Shawcroft 2018-10-14 23:31:51 -07:00 committed by GitHub
commit e4b1946fd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,7 +206,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)