mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
fixed minor compilation warnings for Leonardo
This commit is contained in:
parent
09aa8bd678
commit
7387db0673
@ -144,7 +144,6 @@ u8 _hid_protocol = 1;
|
|||||||
u8 _hid_idle = 1;
|
u8 _hid_idle = 1;
|
||||||
|
|
||||||
#define WEAK __attribute__ ((weak))
|
#define WEAK __attribute__ ((weak))
|
||||||
#define WEAK
|
|
||||||
|
|
||||||
int WEAK HID_GetInterface(u8* interfaceNum)
|
int WEAK HID_GetInterface(u8* interfaceNum)
|
||||||
{
|
{
|
||||||
@ -245,7 +244,7 @@ void Mouse_::release(uint8_t b)
|
|||||||
|
|
||||||
bool Mouse_::isPressed(uint8_t b)
|
bool Mouse_::isPressed(uint8_t b)
|
||||||
{
|
{
|
||||||
if (b & _buttons > 0)
|
if ((b & _buttons) > 0)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ private:
|
|||||||
void setKeyMap(KeyMap* keyMap);
|
void setKeyMap(KeyMap* keyMap);
|
||||||
public:
|
public:
|
||||||
Keyboard_();
|
Keyboard_();
|
||||||
virtual size_t write(uint8_t c) {type(c);};
|
virtual size_t write(uint8_t c) {return type(c);};
|
||||||
virtual size_t type(uint8_t c);
|
virtual size_t type(uint8_t c);
|
||||||
};
|
};
|
||||||
extern Keyboard_ Keyboard;
|
extern Keyboard_ Keyboard;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user