瀏覽代碼

Fix incorrect baud rate on Serial2 when used with format option

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

+ 1
- 1
teensy3/HardwareSerial.h 查看文件

@@ -213,7 +213,7 @@ class HardwareSerial2 : public HardwareSerial
public:
virtual void begin(uint32_t baud) { serial2_begin(BAUD2DIV2(baud)); }
virtual void begin(uint32_t baud, uint32_t format) {
serial2_begin(BAUD2DIV(baud));
serial2_begin(BAUD2DIV2(baud));
serial2_format(format); }
virtual void end(void) { serial2_end(); }
virtual void transmitterEnable(uint8_t pin) { serial2_set_transmit_pin(pin); }

Loading…
取消
儲存