Return length from receive()

This commit is contained in:
Henrik Ekblad
2015-02-04 22:04:32 +01:00
parent 615da4509c
commit 83be24d2be
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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() {
+1
View File
@@ -42,6 +42,7 @@ uint8_t MyRFDriverRF69::receive(void* data) {
{
radio->sendACK();
}
return radio->DATALEN;
}
void MyRFDriverRF69::powerDown() {