From fdfcc047ddeffa5b3f2076845440db4bab4e0507 Mon Sep 17 00:00:00 2001 From: OBones Date: Mon, 5 Jul 2021 11:03:17 +0200 Subject: [PATCH] processReceivedData now returns the number of signals it has decoded --- RFLink/14_rtl_433Bridge.cpp | 4 +++- RFLink/14_rtl_433Bridge.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RFLink/14_rtl_433Bridge.cpp b/RFLink/14_rtl_433Bridge.cpp index e8b29f61..c0871e10 100644 --- a/RFLink/14_rtl_433Bridge.cpp +++ b/RFLink/14_rtl_433Bridge.cpp @@ -225,7 +225,7 @@ namespace RFLink } } - void processReceivedData() + int processReceivedData() { //Serial.println("rtl_433 trying to process messages"); /*for (int deviceIndex = 0; deviceIndex < num_r_devices; deviceIndex++) @@ -261,6 +261,8 @@ namespace RFLink //Serial.printf("stack free: %d", uxTaskGetStackHighWaterMark(NULL)); //Serial.println(); + + return decodedCount; } } } diff --git a/RFLink/14_rtl_433Bridge.h b/RFLink/14_rtl_433Bridge.h index 22663c53..eeff9aed 100644 --- a/RFLink/14_rtl_433Bridge.h +++ b/RFLink/14_rtl_433Bridge.h @@ -16,7 +16,7 @@ namespace RFLink namespace rtl_433Bridge { void register_all_protocols(unsigned disabled); - void processReceivedData(); + int processReceivedData(); } } #endif \ No newline at end of file