瀏覽代碼

Fix Serial1.write(0)

teensy4-core
PaulStoffregen 5 年之前
父節點
當前提交
a4c6f53307
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      teensy4/HardwareSerial.h

+ 5
- 0
teensy4/HardwareSerial.h 查看文件

static uint8_t serial_event_handlers_active; static uint8_t serial_event_handlers_active;


using Print::write; using Print::write;
size_t write(unsigned long n) { return write((uint8_t)n); }
size_t write(long n) { return write((uint8_t)n); }
size_t write(unsigned int n) { return write((uint8_t)n); }
size_t write(int n) { return write((uint8_t)n); }

// Only overwrite some of the virtualWrite functions if we are going to optimize them over Print version // Only overwrite some of the virtualWrite functions if we are going to optimize them over Print version


/* /*

Loading…
取消
儲存