From 592d0c60e98c86ebd0cfa2db728c44999a40186b Mon Sep 17 00:00:00 2001 From: Terry Moore Date: Mon, 26 Nov 2018 03:50:54 -0500 Subject: [PATCH] Fix #50: handle zero-length payloads per spec --- src/lib/arduino_lorawan_begin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/arduino_lorawan_begin.cpp b/src/lib/arduino_lorawan_begin.cpp index 3d04d9b..cde6a85 100644 --- a/src/lib/arduino_lorawan_begin.cpp +++ b/src/lib/arduino_lorawan_begin.cpp @@ -268,7 +268,7 @@ void Arduino_LoRaWAN::StandardEventProcessor( void Arduino_LoRaWAN::NetRxComplete(void) { // notify client that RX is available - if (LMIC.dataLen) + if (LMIC.dataLen != 0 || LMIC.dataBeg != 0) { uint8_t port; port = 0;