mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-28 20:53:35 +08:00
comm_serial: use serial.serial_for_url
This commit is contained in:
parent
f684678b91
commit
37feaf1cea
@ -67,7 +67,7 @@ class Comm(AutoDB):
|
||||
implicit_core = False
|
||||
|
||||
def build(self):
|
||||
self.port = serial.Serial(self.serial_dev, baudrate=115200)
|
||||
self.port = serial.serial_for_url(self.serial_dev, baudrate=115200)
|
||||
self.port.flush()
|
||||
self.set_remote_baud(self.baud_rate)
|
||||
self.set_baud(self.baud_rate)
|
||||
|
Loading…
Reference in New Issue
Block a user