Skip to content

Commit 58004cd

Browse files
committed
UART: adapt to namespaced ArduinoAPI
1 parent 68c4e0b commit 58004cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/arduino/UART.h

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
#include <inttypes.h>
2929
#include "api/HardwareSerial.h"
3030

31+
#if ARDUINO_API_VERSION > 10000
32+
using namespace arduino;
33+
#endif
34+
3135
// Define constants and variables for buffering incoming serial data. We're
3236
// using a ring buffer (I think), in which head is the index of the location
3337
// to which to write the next incoming character and tail is the index of the

0 commit comments

Comments
 (0)