mirror of https://github.com/m-labs/artiq.git
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
|
implicit_core = False
|
||||||
|
|
||||||
def build(self):
|
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.port.flush()
|
||||||
self.set_remote_baud(self.baud_rate)
|
self.set_remote_baud(self.baud_rate)
|
||||||
self.set_baud(self.baud_rate)
|
self.set_baud(self.baud_rate)
|
||||||
|
|
Loading…
Reference in New Issue