Commit 5108e32 1 parent d0029bc commit 5108e32 Copy full SHA for 5108e32
File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ Copyright (C) 2016-2019 by Xose Pérez <xose dot perez at gmail dot com>
24
24
#include < list>
25
25
#include < memory>
26
26
27
+ #if RFB_PROVIDER == RFB_PROVIDER_RCSWITCH
28
+ #include < RCSwitch.h>
29
+ #endif
30
+
27
31
// -----------------------------------------------------------------------------
28
32
// GLOBALS TO THE MODULE
29
33
// -----------------------------------------------------------------------------
@@ -33,18 +37,13 @@ namespace {
33
37
unsigned char _rfb_repeats = RFB_SEND_REPEATS;
34
38
35
39
#if RFB_PROVIDER == RFB_PROVIDER_RCSWITCH
36
-
37
- #include < RCSwitch.h>
38
40
std::unique_ptr<RCSwitch> _rfb_modem;
39
41
bool _rfb_receive { false };
40
42
bool _rfb_transmit { false };
41
-
42
43
#else
43
-
44
44
Stream* _rfb_port { nullptr };
45
45
constexpr bool _rfb_receive { true };
46
46
constexpr bool _rfb_transmit { true };
47
-
48
47
#endif
49
48
50
49
std::forward_list<RfbCodeHandler> _rfb_code_handlers;
You can’t perform that action at this time.
0 commit comments