diff --git a/examples/LoRaDuplex/LoRaDuplex.ino b/examples/LoRaDuplex/LoRaDuplex.ino index c914254..70d4349 100644 --- a/examples/LoRaDuplex/LoRaDuplex.ino +++ b/examples/LoRaDuplex/LoRaDuplex.ino @@ -88,7 +88,7 @@ void onReceive(int packetSize) { } // if the recipient isn't this device or broadcast, - if (recipient != localAddress && recipient != 0xFF) { + if (recipient != localAddress && recipient != destination) { Serial.println("This message is not for me."); return; // skip rest of function } diff --git a/examples/LoRaDuplexCallback/LoRaDuplexCallback.ino b/examples/LoRaDuplexCallback/LoRaDuplexCallback.ino index 0511f3e..de2d11c 100644 --- a/examples/LoRaDuplexCallback/LoRaDuplexCallback.ino +++ b/examples/LoRaDuplexCallback/LoRaDuplexCallback.ino @@ -92,7 +92,7 @@ void onReceive(int packetSize) { } // if the recipient isn't this device or broadcast, - if (recipient != localAddress && recipient != 0xFF) { + if (recipient != localAddress && recipient != destination) { Serial.println("This message is not for me."); return; // skip rest of function }