Revert changes that didn't do anything

This commit is contained in:
Adam Novak 2022-02-21 22:11:55 +00:00
parent c3e57753ff
commit 71df428fa1
2 changed files with 3 additions and 14 deletions

View File

@ -712,9 +712,9 @@ bool LoRaClass::resetModem()
REG_HOP_PERIOD, 0x00,
REG_MODEM_CONFIG_3, 0x04,
REG_PPM_CORRECTION, 0x00,
//REG_DETECTION_OPTIMIZE, 0xc3, // Errata says this needs to be set before REG_IF_FREQ_1 and REG_IF_FREQ_2
//REG_IF_FREQ_2, 0x45, // Datasheet says this defaults to 0x20, but dumping says 0x45.
//REG_IF_FREQ_1, 0x55, // Datasheet says this defaults to 0x00, but dumping says 0x55.
REG_DETECTION_OPTIMIZE, 0xc3, // Errata says this needs to be set before REG_IF_FREQ_1 and REG_IF_FREQ_2
REG_IF_FREQ_2, 0x45, // Datasheet says this defaults to 0x20, but dumping says 0x45.
REG_IF_FREQ_1, 0x55, // Datasheet says this defaults to 0x00, but dumping says 0x55.
REG_INVERT_IQ, 0x27,
REG_HIGH_BW_OPTIMIZE_1, 0x03,
REG_DETECTION_THRESHOLD, 0x0a,

View File

@ -792,21 +792,10 @@ void validateStatus() {
}
}
bool started = false;
void loop() {
if (radio_online) {
checkModemStatus();
if (!started) {
started = true;
//promisc = true;
tbuf[0] = 'R';
tbuf[1] = 'N';
transmit(2);
//promisc = false;
}
#if MCU_VARIANT == MCU_ESP32
if (packet_ready) {
portENTER_CRITICAL(&update_lock);