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
1 changed files with 1 additions and 1 deletions

View File

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