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

Removed class specific arguments from kwargs via "pop". Since this prevents "Serial" from initializing. #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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