Skip to content

Commit 299ef95

Browse files
authored
Revert "Add agc reset attempt (#8163)" (#9702)
This reverts commit ac611c4.
1 parent 840b298 commit 299ef95

3 files changed

Lines changed: 0 additions & 12 deletions

File tree

src/main.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
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
193192
bool osk_found = false;
194193

195-
unsigned long last_listen = 0;
196-
197194
// The I2C address of the RTC Module (if found)
198195
ScanI2C::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)) {

src/main.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ extern ScanI2C::DeviceAddress cardkb_found;
3333
extern uint8_t kb_model;
3434
extern bool kb_found;
3535
extern bool osk_found;
36-
extern unsigned long last_listen;
3736
extern ScanI2C::DeviceAddress rtc_found;
3837
extern ScanI2C::DeviceAddress accelerometer_found;
3938
extern ScanI2C::FoundDevice rgb_found;

src/mesh/RadioLibInterface.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,6 @@ void RadioLibInterface::handleReceiveInterrupt()
517517

518518
void 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
}

0 commit comments

Comments
 (0)