Skip to content

Commit

Permalink
fix: It has been decided that rtl_433 is only to be used with ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
obones authored and cpainchaud committed May 31, 2023
1 parent cf06a9c commit e54094a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions RFLink/11_Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,10 @@ namespace RFLink

printFile();

#ifdef ESP32
// register rtl_433 protocols
rtl_433Bridge::register_all_protocols(0);
#endif
}

class CallbackManager
Expand Down
2 changes: 2 additions & 0 deletions RFLink/14_rtl_433Bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -269,3 +270,4 @@ namespace RFLink
}
}
}
#endif
3 changes: 3 additions & 0 deletions RFLink/14_rtl_433Bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#ifndef rtl_433Bridge_h
#define rtl_433Bridge_h

#ifdef ESP32
namespace RFLink
{
namespace rtl_433Bridge
Expand All @@ -19,4 +20,6 @@ namespace RFLink
int processReceivedData();
}
}
#endif

#endif
3 changes: 3 additions & 0 deletions RFLink/14_rtl_433BridgeFieldMappings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -301,3 +303,4 @@ namespace RFLink
}
}
}
#endif
2 changes: 2 additions & 0 deletions RFLink/14_rtl_433BridgeFieldMappings.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#ifndef rtl_433BridgeFieldMappings_h
#define rtl_433BridgeFieldMappings_h

#ifdef ESP32
#include <stdint.h>
#include "4_Display.h"

Expand Down Expand Up @@ -50,5 +51,6 @@ namespace RFLink

}
}
#endif

#endif
2 changes: 2 additions & 0 deletions RFLink/2_Signal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,9 @@ namespace RFLink

if (success)
{
#ifdef ESP32
counters::receivedSignalsCount += rtl_433Bridge::processReceivedData();
#endif

bool result = false;
int PulsesCount = RawSignal.Number;
Expand Down
3 changes: 1 addition & 2 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ build_src_filter = +<*> -<Plugins>

[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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e54094a

Please sign in to comment.