You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The option I want to override is a boolean in the JSON. I am trying to override upload.use_1200bps_touch. However, any value I enter into the platformio.ini file gets parsed as a string (not a boolean), and Python considers any non-empty string as True. Therefore it is nearly impossible to override this (or any other boolean) with the value False. The entry needs to be properly parsed to a boolean.
Steps to Reproduce
Create platform.ini file for a board that has upload.use_1200bps_touch set to True by default.
Add the option board_upload.use_1200bps_touch = False to platform.ini
Actual Results
The upload script still executes the use_1200bps_touch code, because False was parsed as a string which evaluates to True. You will see in the terminal "Forcing reset using 1200bps open/close on port" when this option executes.
Expected Results
False should be False. There should be no text "Forcing reset using 1200bps open/close on port" in the terminal.
What kind of issue is this?
If you’ve found a bug, please provide an information below.
Operating system: Ubuntu 19.04
PlatformIO Version: Version 4.0.3
Description of problem
I am attempting to override some of the options for my board, as described in the doc "Advanced Scripting - Override Board Configuration"
The option I want to override is a boolean in the JSON. I am trying to override
upload.use_1200bps_touch
. However, any value I enter into the platformio.ini file gets parsed as a string (not a boolean), and Python considers any non-empty string asTrue
. Therefore it is nearly impossible to override this (or any other boolean) with the valueFalse
. The entry needs to be properly parsed to a boolean.Steps to Reproduce
upload.use_1200bps_touch
set toTrue
by default.board_upload.use_1200bps_touch = False
to platform.iniActual Results
The upload script still executes the
use_1200bps_touch
code, because False was parsed as a string which evaluates to True. You will see in the terminal "Forcing reset using 1200bps open/close on port" when this option executes.Expected Results
False should be False. There should be no text "Forcing reset using 1200bps open/close on port" in the terminal.
If problems with PlatformIO Build System:
The content of
platformio.ini
:The text was updated successfully, but these errors were encountered: