Skip to content

Commit

Permalink
[SX1262] increase transmit timeout for a abnormal use case when BUSY …
Browse files Browse the repository at this point in the history
…signal is NC
  • Loading branch information
lyusupov committed May 24, 2024
1 parent 20e3019 commit 1db9fa4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions software/firmware/source/SoftRF/src/driver/radio/almic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,12 @@ static bool sx12xx_transmit()
tx_timeout += tx_timeout;
#endif

#if defined(USE_BASICMAC)
if (rf_chip->type == RF_IC_SX1262 && lmic_pins.busy == LMIC_UNUSED_PIN) {
tx_timeout += 200;
}
#endif

unsigned long tx_start = millis();

while (sx12xx_transmit_complete == false) {
Expand Down

0 comments on commit 1db9fa4

Please sign in to comment.