diff --git a/platformio/commands/device.py b/platformio/commands/device.py index 877b62e6..8b6dbd89 100644 --- a/platformio/commands/device.py +++ b/platformio/commands/device.py @@ -166,7 +166,7 @@ def device_monitor(**kwargs): # pylint: disable=too-many-branches monitor_options = {k: v for k, v in project_options or []} if monitor_options: for k in ("port", "baud", "rts", "dtr"): - k2 = "monitor_%s" % k + k2 = "monitor_%s" % ("speed" if k == "baud" else k) if kwargs[k] is None and k2 in monitor_options: kwargs[k] = monitor_options[k2] if k != "port":