Hello all,
I’m facing a strange issue when I try to define a macro to something with an & in its value through platformio.ini build_flags.
For example, I want to define:
CONFIG_LV_FONT_DEFAULT
to &roboto14
, so the line looks like:
-D CONFIG_LV_FONT_DEFAULT="&roboto14"
But when I try to compile the program, several errors are thrown, and it seems the value without the & is interpreted against the OS interpreter (giving 'roboto_14' is not recognized as an internal or external command, operable program or batch file.
on Windows, and sh: 1: roboto_14: not found
on Ubuntu).
Is there a special way of defining macro values containing special characters like &? I’ve searched in the documentation, but I couldn’t find anything mentioning this.
I also opened an issue, but I’m starting to think I’m in cause for this error, if so I’ll close it with the explanation: & (ampersand) in a build flag results in environment interpreter error · Issue #4396 · platformio/platformio-core · GitHub
Thanks in advance, have a good day.