[SX126x] Fixed missing standby in blocking receive

This commit is contained in:
jgromes 2019-10-02 18:58:46 +02:00
parent 5d4680709f
commit f3ba8cf86a

View file

@ -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));
}