Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TAG constant defined in diskio_rawmsc.cpp prevents defining TAG in platformio.ini #133

Open
beorosz opened this issue Feb 3, 2023 · 0 comments

Comments

@beorosz
Copy link

beorosz commented Feb 3, 2023

When using ESP32TinyUSB in PlatformIO project, I define USE_ESP_IDF_LOG and the TAG in the platformio.ini. This way I am able to use Arduino Core log_x functions, both for serial and file logging. However, when I build the PIO project, it fails with the following:

<command-line>: error: expected unqualified-id before string constant
.pio/libdeps/esp32-s2-saola-1/ESP32TinyUSB/src/host/msc/vfs/diskio_rawmsc.cpp:28:20: note: in expansion of macro 'TAG'
 static const char *TAG = "msc_rawflash";

If I delete the TAG line (or enclose it with #ifndef TAG ... #endif) the error goes away, I can compile my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant