Skip to content

Commit

Permalink
Merge pull request #61 from mcci-catena/issue50
Browse files Browse the repository at this point in the history
Fix #50: handle zero-length payloads per spec
  • Loading branch information
terrillmoore authored Nov 26, 2018
2 parents 2b187a4 + 592d0c6 commit 19a0fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/arduino_lorawan_begin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 19a0fbb

Please sign in to comment.