Skip to content

Commit 6e6ea62

Browse files
authored
Merge pull request #62 from RussNelson/fix_A_Reset_command
Fix the revision A reset command.
2 parents f3587b6 + 07d77e8 commit 6e6ea62

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

library/lcd_comm_rev_a.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ def Reset(self):
6363
logger.info("Display reset (COM port may change)...")
6464
# Reset command bypasses queue because it is run when queue threads are not yet started
6565
self.SendCommand(Command.RESET, 0, 0, 0, 0, bypass_queue=True)
66+
self.closeSerial()
6667
# Wait for display reset then reconnect
67-
time.sleep(1)
68+
time.sleep(5)
6869
self.openSerial()
6970

7071
def Clear(self):

library/lcd_comm_rev_b.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def Hello(self):
9292

9393
if len(response) != 10:
9494
logger.warning("Device not recognised (short response to HELLO)")
95+
assert response, "Device did not return anything"
9596
if response[0] != Command.HELLO or response[-1] != Command.HELLO:
9697
logger.warning("Device not recognised (bad framing)")
9798
if [x for x in response[1:6]] != hello:

0 commit comments

Comments
 (0)