Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/mesh/SX126xInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,10 @@ template <typename T> void SX126xInterface<T>::resetAGC()
// 5. Re-calibrate image rejection for actual operating frequency
// Calibrate(0x7F) defaults to 902-928 MHz which is wrong for other regions.
lora.calibrateImage(getFreq());
// 6. CalibrateImage keeps working internally after it returns, and BUSY does not
// stay asserted for it; a register write in that window fails write-verify
// (RADIOLIB_ERR_SPI_WRITE_FAILED) and stalls the chip.
module.hal->delay(50);

// Re-apply settings that calibration may have reset

Expand All @@ -592,7 +596,7 @@ template <typename T> void SX126xInterface<T>::resetAGC()
LOG_WARN("SX126x resetAGC: 0x8B5 RX patch re-apply failed");
}

// 6. Resume receiving
// 7. Resume receiving
startReceive();
}

Expand Down