diff options
Diffstat (limited to 'protocol/usb_hid/NullSerial.cpp')
-rw-r--r-- | protocol/usb_hid/NullSerial.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/protocol/usb_hid/NullSerial.cpp b/protocol/usb_hid/NullSerial.cpp deleted file mode 100644 index 6d85caf2d..000000000 --- a/protocol/usb_hid/NullSerial.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include "USBAPI.h" - - -void NullSerial::begin(uint16_t baud_count) -{ -} - -void NullSerial::end(void) -{ -} - -void NullSerial::accept(void) -{ -} - -int NullSerial::available(void) -{ - return 0; -} - -int NullSerial::peek(void) -{ - return -1; -} - -int NullSerial::read(void) -{ - return -1; -} - -void NullSerial::flush(void) -{ -} - -size_t NullSerial::write(uint8_t c) -{ - return 1; -} - -NullSerial::operator bool() { - return true; -} - -NullSerial Serial; |