mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Support old version of monitor_baud
option for device monitor
This commit is contained in:
@ -165,8 +165,10 @@ def device_monitor(**kwargs): # pylint: disable=too-many-branches
|
|||||||
kwargs['environment'])
|
kwargs['environment'])
|
||||||
monitor_options = {k: v for k, v in project_options or []}
|
monitor_options = {k: v for k, v in project_options or []}
|
||||||
if monitor_options:
|
if monitor_options:
|
||||||
for k in ("port", "baud", "rts", "dtr"):
|
for k in ("port", "baud", "speed", "rts", "dtr"):
|
||||||
k2 = "monitor_%s" % ("speed" if k == "baud" else k)
|
k2 = "monitor_%s" % k
|
||||||
|
if k == "speed":
|
||||||
|
k = "baud"
|
||||||
if kwargs[k] is None and k2 in monitor_options:
|
if kwargs[k] is None and k2 in monitor_options:
|
||||||
kwargs[k] = monitor_options[k2]
|
kwargs[k] = monitor_options[k2]
|
||||||
if k != "port":
|
if k != "port":
|
||||||
|
Reference in New Issue
Block a user