Printrun icon indicating copy to clipboard operation
Printrun copied to clipboard

"dtr" argument in printcore class constructor is being ignored

Open oyooyo opened this issue 2 years ago • 0 comments

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)

oyooyo avatar Nov 11 '21 14:11 oyooyo