[SX126x] Added missing calls to standby
This commit is contained in:
parent
8a471d082f
commit
fdb8993336
1 changed files with 2 additions and 0 deletions
|
@ -220,6 +220,7 @@ int16_t SX126x::transmit(uint8_t* data, size_t len, uint8_t addr) {
|
|||
while(!digitalRead(_mod->getIrq())) {
|
||||
if(micros() - start > timeout) {
|
||||
clearIrqStatus();
|
||||
standby();
|
||||
return(ERR_TX_TIMEOUT);
|
||||
}
|
||||
}
|
||||
|
@ -286,6 +287,7 @@ int16_t SX126x::receive(uint8_t* data, size_t len) {
|
|||
if(micros() - start > timeout) {
|
||||
fixImplicitTimeout();
|
||||
clearIrqStatus();
|
||||
standby();
|
||||
return(ERR_RX_TIMEOUT);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue