Skip to content

Commit 4335fd1

Browse files
Merge pull request #71 from Dantali0n/patch-1
Fix compilation with UBRRH or UBRRxH set
2 parents 42e2a1f + 2640b51 commit 4335fd1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/SerialFake.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include "StreamFake.h"
55
#include "arduino/USBAPI.h"
66

7+
#if defined(USBCON)
8+
79
struct SerialFake : public StreamFake
810
{
911
virtual void begin(unsigned long) = 0;
@@ -45,4 +47,6 @@ class SerialFakeProxy : public StreamFakeProxy, public Serial_
4547
{
4648
return serialFake;
4749
}
48-
};
50+
};
51+
52+
#endif // USBCON

0 commit comments

Comments
 (0)