[RF69] Added missing standby command
This commit is contained in:
parent
4bf2289353
commit
1b96a00cb5
1 changed files with 6 additions and 0 deletions
|
@ -289,6 +289,12 @@ int16_t RF69::startTransmit(uint8_t* data, size_t len, uint8_t addr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t RF69::readData(uint8_t* data, size_t len) {
|
int16_t RF69::readData(uint8_t* data, size_t len) {
|
||||||
|
// set mdoe to standby
|
||||||
|
int16_t state = standby();
|
||||||
|
if(state != ERR_NONE) {
|
||||||
|
return(state);
|
||||||
|
}
|
||||||
|
|
||||||
// get packet length
|
// get packet length
|
||||||
size_t length = len;
|
size_t length = len;
|
||||||
if(len == RF69_MAX_PACKET_LENGTH) {
|
if(len == RF69_MAX_PACKET_LENGTH) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue