diff --git a/lib/TWCManager/Interface/RS485.py b/lib/TWCManager/Interface/RS485.py index 61fd9f0c..412e558f 100644 --- a/lib/TWCManager/Interface/RS485.py +++ b/lib/TWCManager/Interface/RS485.py @@ -49,7 +49,7 @@ def __init__(self, master): self.port = porta # Connect to serial port - self.ser = self.serial.Serial(self.port, self.baud, timeout=0) + self.ser = self.serial.serial_for_url(self.port, self.baud, timeout=0) def close(self): # Close the serial interface