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

Commit 5880ac1

Browse files
author
Julian Kern
committed
Update thermal_printer_legacy.py
Specifying encoding in the legacy code
1 parent 61cb671 commit 5880ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_thermal_printer/thermal_printer_legacy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def feed(self, lines):
109109
"""Advance paper by specified number of blank lines."""
110110
# Just send line feeds for older printers.
111111
for _ in range(lines):
112-
self._write_char("\n")
112+
self._write_char("\n", encoding="ascii")
113113

114114
def has_paper(self):
115115
"""Return a boolean indicating if the printer has paper. You MUST have

0 commit comments

Comments
 (0)