Commit b55aeae 1 parent b6aba6c commit b55aeae Copy full SHA for b55aeae
File tree 4 files changed +14
-0
lines changed
4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ VS1::VS1(HardwareSerial* interface)
37
37
}
38
38
}
39
39
40
+ #if defined(ARDUINO_ARCH_ESP8266)
40
41
VS1::VS1 (SoftwareSerial* interface)
41
42
: _state(State::UNDEFINED)
42
43
, _currentMillis(vw_millis())
@@ -62,6 +63,8 @@ VS1::VS1(SoftwareSerial* interface)
62
63
vw_abort ();
63
64
}
64
65
}
66
+ #endif
67
+
65
68
#else
66
69
VS1::VS1 (const char * interface)
67
70
: _state(State::UNDEFINED)
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ the LICENSE file.
17
17
#include " ../Datapoint/Datapoint.h"
18
18
#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
19
19
#include " ../Interface/HardwareSerialInterface.h"
20
+ #if defined(ARDUINO_ARCH_ESP8266)
20
21
#include " ../Interface/SoftwareSerialInterface.h"
22
+ #endif
21
23
#elif defined(__linux__)
22
24
#include " ../Interface/LinuxSerialInterface.h"
23
25
#else
@@ -33,7 +35,9 @@ class VS1 {
33
35
34
36
#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
35
37
explicit VS1 (HardwareSerial* interface);
38
+ #if defined(ARDUINO_ARCH_ESP8266)
36
39
explicit VS1 (SoftwareSerial* interface);
40
+ #endif
37
41
#else
38
42
explicit VS1 (const char * interface);
39
43
#endif
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ VS2::VS2(HardwareSerial* interface)
31
31
}
32
32
}
33
33
34
+ #if defined(ARDUINO_ARCH_ESP8266)
34
35
VS2::VS2 (SoftwareSerial* interface)
35
36
: _state(State::UNDEFINED)
36
37
, _currentMillis(vw_millis())
@@ -50,6 +51,8 @@ VS2::VS2(SoftwareSerial* interface)
50
51
vw_abort ();
51
52
}
52
53
}
54
+ #endif
55
+
53
56
#else
54
57
VS2::VS2 (const char * interface)
55
58
: _state(State::UNDEFINED)
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ the LICENSE file.
17
17
#include " ../Datapoint/Datapoint.h"
18
18
#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
19
19
#include " ../Interface/HardwareSerialInterface.h"
20
+ #if defined(ARDUINO_ARCH_ESP8266)
20
21
#include " ../Interface/SoftwareSerialInterface.h"
22
+ #endif
21
23
#elif defined(__linux__)
22
24
#include " ../Interface/LinuxSerialInterface.h"
23
25
#else
@@ -33,7 +35,9 @@ class VS2 {
33
35
34
36
#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
35
37
explicit VS2 (HardwareSerial* interface);
38
+ #if defined(ARDUINO_ARCH_ESP8266)
36
39
explicit VS2 (SoftwareSerial* interface);
40
+ #endif
37
41
#else
38
42
explicit VS2 (const char * interface);
39
43
#endif
You can’t perform that action at this time.
0 commit comments