File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77#include " NodeDB.h"
88#include " PowerFSM.h"
99#include " PowerMon.h"
10- #include " RadioLibInterface.h"
1110#include " ReliableRouter.h"
1211#include " airtime.h"
1312#include " buzz.h"
@@ -192,8 +191,6 @@ bool kb_found = false;
192191// global bool to record that on-screen keyboard (OSK) is present
193192bool osk_found = false ;
194193
195- unsigned long last_listen = 0 ;
196-
197194// The I2C address of the RTC Module (if found)
198195ScanI2C::DeviceAddress rtc_found = ScanI2C::ADDRESS_NONE;
199196// The I2C address of the Accelerometer (if found)
@@ -1121,12 +1118,6 @@ void loop()
11211118#endif
11221119 power->powerCommandsCheck ();
11231120
1124- if (RadioLibInterface::instance != nullptr && !Throttle::isWithinTimespanMs (last_listen, 1000 * 60 ) &&
1125- !(RadioLibInterface::instance->isSending () || RadioLibInterface::instance->isActivelyReceiving ())) {
1126- RadioLibInterface::instance->startReceive ();
1127- LOG_DEBUG (" attempting AGC reset" );
1128- }
1129-
11301121#ifdef DEBUG_STACK
11311122 static uint32_t lastPrint = 0 ;
11321123 if (!Throttle::isWithinTimespanMs (lastPrint, 10 * 1000L )) {
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ extern ScanI2C::DeviceAddress cardkb_found;
3333extern uint8_t kb_model;
3434extern bool kb_found;
3535extern bool osk_found;
36- extern unsigned long last_listen;
3736extern ScanI2C::DeviceAddress rtc_found;
3837extern ScanI2C::DeviceAddress accelerometer_found;
3938extern ScanI2C::FoundDevice rgb_found;
Original file line number Diff line number Diff line change @@ -517,8 +517,6 @@ void RadioLibInterface::handleReceiveInterrupt()
517517
518518void RadioLibInterface::startReceive ()
519519{
520- // Note the updated timestamp, to avoid unneeded AGC resets
521- last_listen = millis ();
522520 isReceiving = true ;
523521 powerMon->setState (meshtastic_PowerMon_State_Lora_RXOn);
524522}
You can’t perform that action at this time.
0 commit comments