-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Preprocessor Macros lead to compiler errors #9321
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
Comments
For what is this file there in general? |
I have absolutely no idea, but it's there in the reference Arduino API, too. Tho they use namespaces and enums appropriately: |
Why not open a PR and replace the current with the one you linked? |
Because I don't know if it will break things. I don't usually develop for Arduino. |
There is a reference from Arduino. This is an Arduino implementation. So the change is getting closer to the API :-) |
Board
LilyGo TTGO LoRa32
Device Description
Just a TTGO
Hardware Configuration
Not relevant
Version
latest master (checkout manually)
IDE Name
PlatformIO
Operating System
Linux
Flash frequency
not relevant
PSRAM enabled
yes
Upload speed
not relevant
Description
In
cores/esp32/binary.h
Causes compilation issues when Arduino.h is included in any project where the literal
B1
already means something.With newer versions of fmtlib/fmt
problems are also caused by
Example: using&including fmtlib/fmt where it's used as a template typename
Sketch
Debug Message
Other Steps to Reproduce
Could this be handled by an enum instead?
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: