aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2014-04-20 20:56:51 +0200
committerCristian Maglie <c.maglie@bug.st>2014-04-20 20:56:51 +0200
commit15d74b2530806c9ebef1160b534d7924490b00f7 (patch)
tree30501603635c9a34e5211a51686f7927a6c1e71c /cores/arduino
parent40d87e96d7775911c1637730bd5f31db6d867384 (diff)
Removed other unused variables in CDC.cpp and HID.cpp
See #1877
Diffstat (limited to 'cores/arduino')
-rw-r--r--cores/arduino/HID.cpp8
-rw-r--r--cores/arduino/USBCore.cpp1
2 files changed, 4 insertions, 5 deletions
diff --git a/cores/arduino/HID.cpp b/cores/arduino/HID.cpp
index ac63608..0a9ac09 100644
--- a/cores/arduino/HID.cpp
+++ b/cores/arduino/HID.cpp
@@ -510,11 +510,11 @@ 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
-#endif /* if defined(USBCON) */ \ No newline at end of file
+#endif /* if defined(USBCON) */
diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp
index 2c03e5a..ad3d770 100644
--- a/cores/arduino/USBCore.cpp
+++ b/cores/arduino/USBCore.cpp
@@ -274,7 +274,6 @@ int USB_Send(u8 ep, const void* d, int len)
int r = len;
const u8* data = (const u8*)d;
- u8 zero = ep & TRANSFER_ZERO;
u8 timeout = 250; // 250ms timeout on send? TODO
while (len)
{