-
Notifications
You must be signed in to change notification settings - Fork 34
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
_BV macro missing in unit test #240
Comments
Is this the use of a documented or undocumented Arduino API? My search suggests that it's not universal:
|
I'm pretty sure that I would suggest to add an |
My sense is to only prioritize this if there is some "official" (Arduino-hosted) documentation explaining it, since there are still a bunch of official functions that need implementation. |
low priority indeed, as workaround is simple. Thoughts
|
Is the other option here to put it behind some kind of |
As this issue has no reactions for 2 yrs the priority is low. For me I try not to use the macro (as macros can have side effects). That said, I searched the Arduino Libraries section (1.8.19) and the BV macro is used in multiple libs incl SPI and SWSerial. |
Issue Summary
problem occurred in a unit test where I used the _BV() macro which is normally supported in Arduino sketches.
Replacing the test code with a normal shift (1UL << (x)) solved the issue.
However people might expect to be able to use the same code constructs as in the sketches / libraries,
just after
#include "Arduino.h"
The text was updated successfully, but these errors were encountered: