We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Keypad.h the following macros are defined
Keypad.h
#define OPEN LOW #define CLOSED HIGH
Because of this, any code that includes Keypad.h can't use OPEN or CLOSE for enum names. E.g.
OPEN
CLOSE
enum ActuatorStatus { CLOSED, OPEN, CLOSING, OPENING, TIMEOUT, ERROR = -1 };
In addition, these #defines are duplicated in Key.h.
Key.h
Super annoying.
One way to fix this is to delete the #defines from Keypad.h and replace the ones in Key.h with:
#defines
#define __OPEN LOW #define __CLOSED HIGH
or, even better:
enum ButtonState { OPEN = LOW, CLOSED = HIGH };
Or something similar.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In
Keypad.h
the following macros are definedBecause of this, any code that includes
Keypad.h
can't useOPEN
orCLOSE
for enum names. E.g.In addition, these #defines are duplicated in
Key.h
.Super annoying.
One way to fix this is to delete the
#defines
fromKeypad.h
and replace the ones inKey.h
with:or, even better:
Or something similar.
The text was updated successfully, but these errors were encountered: