-
-
Notifications
You must be signed in to change notification settings - Fork 133
Closed
Labels
Description
Line 68 in 173e8ea
#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit)) |
Current version does not wrap arguments in "()", so it works incorrectly when used like this:
bitWrite(var, bit, cond?1:0);
Some cores probably copied this header, as seen in stm32 and esp32