We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6a4b02 commit c01e556Copy full SHA for c01e556
cores/esp32/HardwareSerial.cpp
@@ -5,7 +5,9 @@
5
6
#include "HardwareSerial.h"
7
8
+#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
9
HardwareSerial Serial(0);
10
+#endif
11
12
HardwareSerial::HardwareSerial(int uart_nr) : _uart_nr(uart_nr), _uart(NULL) {}
13
cores/esp32/HardwareSerial.h
@@ -76,6 +76,8 @@ class HardwareSerial: public Stream
76
uart_t* _uart;
77
};
78
79
80
extern HardwareSerial Serial;
81
82
83
#endif
0 commit comments