diff --git a/RFLink/11_Config.cpp b/RFLink/11_Config.cpp index d5946b2..ecc49e8 100644 --- a/RFLink/11_Config.cpp +++ b/RFLink/11_Config.cpp @@ -299,8 +299,10 @@ namespace RFLink printFile(); + #ifdef ESP32 // register rtl_433 protocols rtl_433Bridge::register_all_protocols(0); + #endif } class CallbackManager diff --git a/RFLink/14_rtl_433Bridge.cpp b/RFLink/14_rtl_433Bridge.cpp index 0004f09..23633d3 100644 --- a/RFLink/14_rtl_433Bridge.cpp +++ b/RFLink/14_rtl_433Bridge.cpp @@ -8,6 +8,7 @@ the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */ +#ifdef ESP32 #include "2_Signal.h" #include "3_Serial.h" #include "4_Display.h" @@ -269,3 +270,4 @@ namespace RFLink } } } +#endif \ No newline at end of file diff --git a/RFLink/14_rtl_433Bridge.h b/RFLink/14_rtl_433Bridge.h index eeff9ae..51bbdc9 100644 --- a/RFLink/14_rtl_433Bridge.h +++ b/RFLink/14_rtl_433Bridge.h @@ -11,6 +11,7 @@ #ifndef rtl_433Bridge_h #define rtl_433Bridge_h +#ifdef ESP32 namespace RFLink { namespace rtl_433Bridge @@ -19,4 +20,6 @@ namespace RFLink int processReceivedData(); } } +#endif + #endif \ No newline at end of file diff --git a/RFLink/14_rtl_433BridgeFieldMappings.cpp b/RFLink/14_rtl_433BridgeFieldMappings.cpp index 8b6b045..3935ac7 100644 --- a/RFLink/14_rtl_433BridgeFieldMappings.cpp +++ b/RFLink/14_rtl_433BridgeFieldMappings.cpp @@ -8,6 +8,8 @@ the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */ +#ifdef ESP32 + #include "4_Display.h" #include "14_rtl_433BridgeFieldMappings.h" @@ -301,3 +303,4 @@ namespace RFLink } } } +#endif \ No newline at end of file diff --git a/RFLink/14_rtl_433BridgeFieldMappings.h b/RFLink/14_rtl_433BridgeFieldMappings.h index 64f128c..c7b3ed2 100644 --- a/RFLink/14_rtl_433BridgeFieldMappings.h +++ b/RFLink/14_rtl_433BridgeFieldMappings.h @@ -11,6 +11,7 @@ #ifndef rtl_433BridgeFieldMappings_h #define rtl_433BridgeFieldMappings_h +#ifdef ESP32 #include #include "4_Display.h" @@ -50,5 +51,6 @@ namespace RFLink } } +#endif #endif \ No newline at end of file diff --git a/RFLink/2_Signal.cpp b/RFLink/2_Signal.cpp index 4c4962c..ac7a5e1 100644 --- a/RFLink/2_Signal.cpp +++ b/RFLink/2_Signal.cpp @@ -618,7 +618,9 @@ namespace RFLink if (success) { + #ifdef ESP32 counters::receivedSignalsCount += rtl_433Bridge::processReceivedData(); + #endif bool result = false; int PulsesCount = RawSignal.Number; diff --git a/platformio.ini b/platformio.ini index cdb91aa..b2bbf7e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -55,7 +55,7 @@ build_src_filter = +<*> - [ESP8266_base] platform = espressif8266@4.1.0 -board = d1_mini +lib_ignore = rtl_433 for RFLink32 lib_deps = ${common.ESPlibs} ${common.ESP8266_libs} monitor_filters = esp8266_exception_decoder @@ -119,7 +119,6 @@ lib_deps = ${common.ESPlibs} ${common.ESP8266_libs} lib_ignore = RadioLib - rtl_433 build_flags = -D TARGET_BOARD_ESP8285 -D ARDUINOJSON_USE_LONG_LONG