Printrun
Printrun copied to clipboard
"dtr" argument in printcore class constructor is being ignored
The printcore
class constructor has a dtr
argument:
class printcore():
def __init__(self, port = None, baud = None, dtr=None):
but it is actually completely ignored inside __init__
.
I assume the correct way to fix this is by simply changing the call to the connect
function inside __init__
from:
if port is not None and baud is not None:
self.connect(port, baud)
to
if port is not None and baud is not None:
self.connect(port, baud, dtr)