提交 c01e5563 编写于 作者: K KEDARUMA FANTASTIC 提交者: Me No Dev

serial global instance fix (#1243)

上级 f6a4b024
......@@ -5,7 +5,9 @@
#include "HardwareSerial.h"
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
HardwareSerial Serial(0);
#endif
HardwareSerial::HardwareSerial(int uart_nr) : _uart_nr(uart_nr), _uart(NULL) {}
......
......@@ -76,6 +76,8 @@ protected:
uart_t* _uart;
};
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
extern HardwareSerial Serial;
#endif
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册