Fix broadcast check for RF69

This commit is contained in:
Henrik Ekblad
2015-02-11 00:07:19 +01:00
parent b238a2e61e
commit 17a680f1de
+4
View File
@@ -30,6 +30,10 @@ bool MyRFDriverRF69::send(uint8_t to, const void* data, uint8_t len) {
}
bool MyRFDriverRF69::available(uint8_t *to) {
if (radio->TARGETID == BROADCAST_ADDRESS)
*to = BROADCAST_ADDRESS;
else
*to = _address;
return radio->receiveDone();
}