Revert changes that didn't do anything
This commit is contained in:
parent
c3e57753ff
commit
71df428fa1
6
LoRa.cpp
6
LoRa.cpp
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue