From 37feaf1cea0b8ea3ea1ce4ace8c6828a2114b083 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 30 Jan 2015 11:47:20 +0800 Subject: [PATCH] comm_serial: use serial.serial_for_url --- artiq/coredevice/comm_serial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/coredevice/comm_serial.py b/artiq/coredevice/comm_serial.py index 73d784372..63336a537 100644 --- a/artiq/coredevice/comm_serial.py +++ b/artiq/coredevice/comm_serial.py @@ -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)