Skip to content
Open
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
9 changes: 5 additions & 4 deletions zephcore/adapters/radio/LoRaRadioBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,11 @@ bool LoRaRadioBase::startSendRaw(const uint8_t *bytes, int len)
* isReceiving() returns false during the CAD window because _tx_active
* is set above — no extra gating needed.
*
* cad.mode = LBT is set unconditionally in buildModemConfig() today;
* the `lbt` flag is a placeholder for any future Kconfig that toggles
* the behaviour. */
const bool lbt = true;
* The loramac-node sx127x backend uses a plain modem_acquire/release
* mutex — there is no phase-2 path. lora_config() returns -EBUSY if
* called while async RX holds the mutex, so we must always cancel RX
* first. Disable the LBT optimisation for that backend. */
const bool lbt = !_loramac_node;

if (!lbt) {
atomic_set(&_in_recv_mode, 0);
Expand Down