Skip to content

Commit 17a680f

Browse files
committed
Fix broadcast check for RF69
1 parent b238a2e commit 17a680f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/MySensors/MyRFDriverRF69.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ bool MyRFDriverRF69::send(uint8_t to, const void* data, uint8_t len) {
3030
}
3131

3232
bool MyRFDriverRF69::available(uint8_t *to) {
33+
if (radio->TARGETID == BROADCAST_ADDRESS)
34+
*to = BROADCAST_ADDRESS;
35+
else
36+
*to = _address;
3337
return radio->receiveDone();
3438
}
3539

0 commit comments

Comments
 (0)