From 97ee6d653ce0d1b3e42e30edc5d27116660cbc87 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Thu, 25 Mar 2021 22:30:27 +0100 Subject: [PATCH] removed rf_load var --- include/globals.h | 1 - src/display.cpp | 1 - src/libpax_helpers.cpp | 3 ++- src/main.cpp | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/globals.h b/include/globals.h index eb4f58b4..5282f27f 100644 --- a/include/globals.h +++ b/include/globals.h @@ -130,7 +130,6 @@ extern configData_t cfg; // current device configuration extern char clientId[20]; // unique clientID extern char lmic_event_msg[LMIC_EVENTMSG_LEN]; // display buffer extern uint8_t volatile channel; // wifi channel rotation counter -extern uint8_t volatile rf_load; // RF traffic indicator extern uint8_t batt_level; // display value extern uint16_t volatile libpax_macs_ble, libpax_macs_wifi; // libpax values extern bool volatile TimePulseTick; // 1sec pps flag set by GPS or RTC diff --git a/src/display.cpp b/src/display.cpp index 91ee570b..fa2ecab8 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -312,7 +312,6 @@ void dp_drawPage(time_t t, bool nextpage) { dp_printf(" "); #endif dp_printf(" ch:%02d", channel); - // dp_printf(" due:%02d", rf_load); dp_println(); // line 5: RSSI limiter + free memory diff --git a/src/libpax_helpers.cpp b/src/libpax_helpers.cpp index b1f88336..4cecebbd 100644 --- a/src/libpax_helpers.cpp +++ b/src/libpax_helpers.cpp @@ -15,6 +15,7 @@ void process_count(void) { } void init_libpax() { - libpax_counter_init(process_count, &count_from_libpax, 60 * 1000, 1); + libpax_counter_init(process_count, &count_from_libpax, SENDCYCLE * 2 * 1000, + 1); libpax_counter_start(); } \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 62a27cc4..afd41322 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -90,7 +90,6 @@ triggers pps 1 sec impulse configData_t cfg; // struct holds current device configuration char lmic_event_msg[LMIC_EVENTMSG_LEN]; // display buffer for LMIC event message uint8_t batt_level = 0; // display value -uint8_t volatile rf_load = 0; // RF traffic indicator char clientId[20] = {0}; // unique ClientID hw_timer_t *ppsIRQ = NULL, *displayIRQ = NULL, *matrixDisplayIRQ = NULL;