aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDamien George2018-09-18 13:49:49 +1000
committerDamien George2018-09-18 13:49:49 +1000
commitdc77fdb7d432ce818a60f7a3b290d5eee760f7bc (patch)
tree3819666a69f6f8d97d1fcca38f971bc713da2a02 /drivers
parent7c4f98db858325d799ee7daf296e6f32454fb85c (diff)
drivers/display/lcd160cr.py: In fast_spi, send command before flushing.
The intention of oflush() is to flush the "fast SPI" command itself so that the SPI object is ready to use when the function returns.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/display/lcd160cr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/display/lcd160cr.py b/drivers/display/lcd160cr.py
index dd9ab9985..cf562a40d 100644
--- a/drivers/display/lcd160cr.py
+++ b/drivers/display/lcd160cr.py
@@ -428,9 +428,9 @@ class LCD160CR:
self._send(self.buf19)
def fast_spi(self, flush=True):
+ self._send(b'\x02\x12')
if flush:
self.oflush()
- self._send(b'\x02\x12')
return self.spi
def show_framebuf(self, buf):