2
0
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:
Sebastien Bourdeauducq 2015-01-30 11:47:20 +08:00
parent f684678b91
commit 37feaf1cea

View File

@ -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)