From 15d74b2530806c9ebef1160b534d7924490b00f7 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Sun, 20 Apr 2014 20:56:51 +0200 Subject: Removed other unused variables in CDC.cpp and HID.cpp See #1877 --- cores/arduino/HID.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cores/arduino/HID.cpp') 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) */ -- cgit v1.2.3-18-g5258