Mattzobricks / MattzoControllers

MattzoController firmware
20 stars 10 forks source link

[my_common] is missing in my_platformio.ini.example #61

Closed Hilbert70 closed 1 month ago

Hilbert70 commented 1 year ago

Please add an empty [my_common] in the example, the my_common should still be there because I saw that platformio is not merging the same variables from the platformio.ini and my_platformio.ini Example platformio.ini

[common]
some_flag = foo

my_platformio.ini

[common]
some_flag = bar

The resulting some_flag is not foo bar, but either foo or bar

To make sure this example is doing what you expect it to do: platformio.ini

[common]
some_flag = foo ${my_common.some_flag}

my_platformio.ini

[my_common]
some_flag = bar

This will result in some_flag having the value foo bar

Make sure to test is with an empty some_flag section in [my_common]

Mattzobricks commented 5 months ago

@Hilbert70, is this done?