[SX126x] Fixed missing standby in blocking receive
This commit is contained in:
parent
5d4680709f
commit
f3ba8cf86a
1 changed files with 6 additions and 0 deletions
|
@ -256,6 +256,12 @@ int16_t SX126x::receive(uint8_t* data, size_t len) {
|
|||
}
|
||||
}
|
||||
|
||||
// put radio to standby
|
||||
state = standby();
|
||||
if(state != ERR_NONE) {
|
||||
return(state);
|
||||
}
|
||||
|
||||
// read the received data
|
||||
return(readData(data, len));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue