浏览代码

usb_serial.clear doesn't compile for F_CPU < 20 MHz

When clear function was added, it was not put in the null operations list when no USB enabled
main
Mr. B 7 年前
父节点
当前提交
dfc217e0a2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      teensy3/usb_serial.h

+ 1
- 0
teensy3/usb_serial.h 查看文件

@@ -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; }

正在加载...
取消
保存