From 02ffb594c7e6835e194cc91b084ab3fd127b5843 Mon Sep 17 00:00:00 2001 From: ChornomoretsVolodymyr <316629@gmail.com> Date: Sun, 12 Apr 2020 20:12:12 +0300 Subject: [PATCH] Examples: replaced hardcoded value - replaced hardcoded value with existed variable that contains same value; --- examples/LoRaDuplex/LoRaDuplex.ino | 2 +- examples/LoRaDuplexCallback/LoRaDuplexCallback.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }