From 9c3c9d2c8e31a7caf1ab5d9fc2f58f2c070e022c Mon Sep 17 00:00:00 2001 From: richonguzman Date: Tue, 6 Jun 2023 15:00:54 -0400 Subject: [PATCH] wasHeard update --- src/station_utils.cpp | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/station_utils.cpp b/src/station_utils.cpp index 5845184..79ecf02 100644 --- a/src/station_utils.cpp +++ b/src/station_utils.cpp @@ -1,14 +1,7 @@ #include "station_utils.h" #include #include "configuration.h" -/*#include -#include "configuration.h" -#include "display.h" - -extern WiFiClient espClient; -extern int internalLedPin; -extern uint32_t lastRxTxTime;*/ extern Configuration Config; extern std::vector lastHeardStation; extern std::vector lastHeardStation_temp; @@ -16,11 +9,10 @@ extern std::vector lastHeardStation_temp; namespace STATION_Utils { void deleteNotHeard() { - uint32_t minReportingTime = Config.rememberStationTime*60*1000; for (int i=0; i Listened Station"); + return true; } } - if (!validStation) { - Serial.println(" ---> Station not Heard for last 30 min (Not Tx)\n"); - } - return validStation; + Serial.println(" ---> Station not Heard for last 30 min (Not Tx)\n"); + return false; } } \ No newline at end of file