1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-13 10:29:35 +01:00

Removed other unused variables in CDC.cpp and HID.cpp

See #1877
This commit is contained in:
Cristian Maglie 2014-04-20 20:56:51 +02:00
parent abbebed7dd
commit 3d795c374b
2 changed files with 4 additions and 5 deletions

View File

@ -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) */
#endif /* if defined(USBCON) */

View File

@ -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)
{