Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit 7c42361

Browse files
Fixed wake() bugs.
1 parent 5ad1fc3 commit 7c42361

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Adafruit_Thermal.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,11 @@ def sleepAfter(self, seconds):
504504

505505

506506
def wake(self):
507+
self.timeoutSet(0);
507508
self.writeBytes(255)
508-
self.timeoutSet(0.5)
509+
for i in range(10):
510+
self.writeBytes(27)
511+
self.timeoutSet(0.1)
509512

510513

511514
# Empty method, included for compatibility

0 commit comments

Comments
 (0)