Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Adafruit_Thermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def __init__(self, *args, **kwargs):
# with the 'firmware=X' argument, where X is the major
# version number * 100 + the minor version number (e.g.
# pass "firmware=264" for version 2.64.
self.firmwareVersion = kwargs.get('firmware', 268)
self.firmwareVersion = kwargs.pop('firmware', 268)
heatTime = kwargs.pop('heattime', self.defaultHeatTime)

if self.writeToStdout is False:
# Calculate time to issue one byte to the printer.
Expand Down Expand Up @@ -109,7 +110,6 @@ def __init__(self, *args, **kwargs):
# may occur. The more heating interval, the more
# clear, but the slower printing speed.

heatTime = kwargs.get('heattime', self.defaultHeatTime)
self.writeBytes(
27, # Esc
55, # 7 (print settings)
Expand Down