aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2011-12-20 17:08:07 -0500
committerZach Eveland <zeveland@blacklabel-development.com>2011-12-20 17:08:07 -0500
commite405a6eb6099a71959c664cab8ca8241634c6b91 (patch)
tree8b9bb5359965fac86f8f8500c4f357bb287c7501
parente4930f866d41baa7e8ac615f22dc3e92ec0f1c5a (diff)
Revert "changed Keyboard write() method to type(). Made write() an alias for type() to allow subclassing by Stream."
This reverts commit de1d5fc0cb82874c0dcb766c5fb27ab36c5cb32c.
-rw-r--r--cores/arduino/HID.cpp5
-rw-r--r--cores/arduino/USBAPI.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/cores/arduino/HID.cpp b/cores/arduino/HID.cpp
index d69522f..8ed1566 100644
--- a/cores/arduino/HID.cpp
+++ b/cores/arduino/HID.cpp
@@ -408,11 +408,6 @@ const uint8_t _asciimap[128] =
uint8_t USBPutChar(uint8_t c);
size_t Keyboard_::write(uint8_t c)
{
- type(c);
-}
-
-size_t Keyboard_::type(uint8_t c)
-{
// Keydown
{
KeyReport keys = {0};
diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h
index 326fd6c..1772c3c 100644
--- a/cores/arduino/USBAPI.h
+++ b/cores/arduino/USBAPI.h
@@ -105,7 +105,6 @@ private:
public:
Keyboard_();
virtual size_t write(uint8_t);
- virtual size_t type(uint8_t);
};
extern Keyboard_ Keyboard;