Return length from receive()
This commit is contained in:
@@ -61,6 +61,7 @@ bool MyRFDriverNRF24::available(uint8_t *to) {
|
||||
uint8_t MyRFDriverNRF24::receive(void* data) {
|
||||
uint8_t len = rf24->getDynamicPayloadSize();
|
||||
rf24->read(data, len);
|
||||
return len;
|
||||
}
|
||||
|
||||
void MyRFDriverNRF24::powerDown() {
|
||||
|
||||
@@ -42,6 +42,7 @@ uint8_t MyRFDriverRF69::receive(void* data) {
|
||||
{
|
||||
radio->sendACK();
|
||||
}
|
||||
return radio->DATALEN;
|
||||
}
|
||||
|
||||
void MyRFDriverRF69::powerDown() {
|
||||
|
||||
Reference in New Issue
Block a user