Browse Source

Merge pull request #215 from LAtimes2/patch-1

usb_serial.clear doesn't compile for F_CPU < 20 MHz
main
Paul Stoffregen 7 years ago
parent
commit
976dfe48a7
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      teensy3/usb_serial.h

+ 1
- 0
teensy3/usb_serial.h View File

@@ -128,6 +128,7 @@ public:
virtual int read() { return -1; }
virtual int peek() { return -1; }
virtual void flush() { }
virtual void clear() { }
virtual size_t write(uint8_t c) { return 1; }
virtual size_t write(const uint8_t *buffer, size_t size) { return size; }
size_t write(unsigned long n) { return 1; }

Loading…
Cancel
Save