Skip to content
This repository was archived by the owner on Feb 17, 2024. It is now read-only.

Commit f37ca8a

Browse files
committed
Include the "real" files instead of the Fakes
Doing it this way allows PlatformIO to find the correct include files so that existing libraries still work. This should address FabioBatSilva#39.
1 parent efbed54 commit f37ca8a

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

src/ArduinoFake.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212

1313
#include "arduino/Arduino.h"
1414

15-
#include "FunctionFake.h"
16-
#include "StreamFake.h"
17-
#include "SerialFake.h"
18-
#include "WireFake.h"
19-
#include "ClientFake.h"
20-
#include "PrintFake.h"
21-
#include "SPIFake.h"
15+
#include "Function.h"
16+
#include "Stream.h"
17+
#include "Serial.h"
18+
#include "Wire.h"
19+
#include "Client.h"
20+
#include "Print.h"
21+
#include "SPI.h"
2222

2323
#define ArduinoFake(mock) _ArduinoFakeGet##mock()
2424

src/Function.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "FunctionFake.h"

src/Print.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "PrintFake.h"

src/Serial.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "SerialFake.h"

src/Stream.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "StreamFake.h"

0 commit comments

Comments
 (0)