From 0738e59a8491b865ff5a3a842f06f5ec2b9ea231 Mon Sep 17 00:00:00 2001 From: Erik Thiart Date: Tue, 5 Jan 2021 16:31:48 +0200 Subject: [PATCH] Update LoRaDuplex.ino Replaced the hardcoded part with the variable to destination --- examples/LoRaDuplex/LoRaDuplex.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }