diff --git a/platformio/commands/serialports.py b/platformio/commands/serialports.py index 593fb2f3..d17d98aa 100644 --- a/platformio/commands/serialports.py +++ b/platformio/commands/serialports.py @@ -121,9 +121,9 @@ else: help="Enable RTS/CTS flow control, default=Off") @click.option("--xonxoff", is_flag=True, help="Enable software flow control, default=Off") - @click.option("--rts", default="0", type=click.Choice(["0", "1"]), + @click.option("--rts", default=None, type=click.Choice(["0", "1"]), help="Set initial RTS line state, default=0") - @click.option("--dtr", default="0", type=click.Choice(["0", "1"]), + @click.option("--dtr", default=None, type=click.Choice(["0", "1"]), help="Set initial DTR line state, default=0") @click.option("--echo", is_flag=True, help="Enable local echo, default=Off")