aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/HID.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino/HID.cpp')
-rw-r--r--cores/arduino/HID.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cores/arduino/HID.cpp b/cores/arduino/HID.cpp
index 553b746..1475860 100644
--- a/cores/arduino/HID.cpp
+++ b/cores/arduino/HID.cpp
@@ -151,7 +151,7 @@ int WEAK HID_GetInterface(u8* interfaceNum)
return USB_SendControl(TRANSFER_PGM,&_hidInterface,sizeof(_hidInterface));
}
-int WEAK HID_GetDescriptor(int i)
+int WEAK HID_GetDescriptor(int /* i */)
{
return USB_SendControl(TRANSFER_PGM,_hidReportDescriptor,sizeof(_hidReportDescriptor));
}
@@ -510,9 +510,9 @@ void Keyboard_::releaseAll(void)
size_t Keyboard_::write(uint8_t c)
{
- uint8_t p = press(c); // Keydown
- uint8_t r = release(c); // Keyup
- return (p); // just return the result of press() since release() almost always returns 1
+ uint8_t p = press(c); // Keydown
+ release(c); // Keyup
+ return p; // just return the result of press() since release() almost always returns 1
}
#endif