diff options
author | Zach Eveland <zeveland@blacklabel-development.com> | 2012-03-03 13:26:57 -0500 |
---|---|---|
committer | Zach Eveland <zeveland@blacklabel-development.com> | 2012-03-03 13:26:57 -0500 |
commit | 8f5869009ccddad8698969ff2ebe204d7b574b37 (patch) | |
tree | f8738d9f7edb5a6313e92f564b81f81969b9b8d9 /cores/arduino/HID.cpp | |
parent | 351817af47ce8bb7b288407cf3ea74562b259748 (diff) |
fixed minor compilation warnings for Leonardo
Diffstat (limited to 'cores/arduino/HID.cpp')
-rw-r--r-- | cores/arduino/HID.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cores/arduino/HID.cpp b/cores/arduino/HID.cpp index e6fb5f7..b60b3c0 100644 --- a/cores/arduino/HID.cpp +++ b/cores/arduino/HID.cpp @@ -144,7 +144,6 @@ u8 _hid_protocol = 1; u8 _hid_idle = 1; #define WEAK __attribute__ ((weak)) -#define WEAK int WEAK HID_GetInterface(u8* interfaceNum) { @@ -245,7 +244,7 @@ void Mouse_::release(uint8_t b) bool Mouse_::isPressed(uint8_t b) { - if (b & _buttons > 0) + if ((b & _buttons) > 0) return true; return false; } |