aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cores/arduino/HID.cpp3
-rw-r--r--cores/arduino/USBAPI.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/cores/arduino/HID.cpp b/cores/arduino/HID.cpp
index b556223..dfcbd9d 100644
--- a/cores/arduino/HID.cpp
+++ b/cores/arduino/HID.cpp
@@ -591,8 +591,7 @@ void Keyboard_::releaseAll(void)
sendReport(&_keyReport);
}
-// type() does a press and release of the specified key.
-size_t Keyboard_::type(uint8_t c)
+size_t Keyboard_::write(uint8_t c)
{
uint8_t p = press(c); // Keydown
uint8_t r = release(c); // Keyup
diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h
index e83089a..ee35af9 100644
--- a/cores/arduino/USBAPI.h
+++ b/cores/arduino/USBAPI.h
@@ -126,8 +126,7 @@ public:
Keyboard_(void);
void begin(void);
void end(void);
- virtual size_t write(uint8_t k) {return type(k);};
- virtual size_t type(uint8_t k);
+ virtual size_t write(uint8_t k);
virtual size_t press(uint8_t k);
virtual size_t release(uint8_t k);