diff options
-rwxr-xr-x | tools/pyboard.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py index 83b613d74b..27665d9055 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -41,8 +41,8 @@ class PyboardError(BaseException): pass class Pyboard: - def __init__(self, serial_device): - self.serial = serial.Serial(serial_device, baudrate=115200, interCharTimeout=1) + def __init__(self, serial_device, baudrate=115200): + self.serial = serial.Serial(serial_device, baudrate=baudrate, interCharTimeout=1) def close(self): self.serial.close() |