From 458375e152abd8e2a1d9c78d7537e3a064323766 Mon Sep 17 00:00:00 2001 From: Jeroen Janssen Date: Sat, 16 Jan 2021 15:19:48 +0100 Subject: [PATCH] getRemoteAddress16 now uses byte 1 and 2 --- XBee.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XBee.cpp b/XBee.cpp index 3d8b670..a226a2b 100755 --- a/XBee.cpp +++ b/XBee.cpp @@ -304,7 +304,7 @@ RxResponse::RxResponse() : RxDataResponse() { } uint16_t Rx16Response::getRemoteAddress16() { - return (getFrameData()[0] << 8) + getFrameData()[1]; + return (getFrameData()[1] << 8) + getFrameData()[2]; } XBeeAddress64& Rx64Response::getRemoteAddress64() {