Skip to content

Commit

Permalink
[LoRaWAN] Fixed size_t comparison (CI_BUILD_ALL)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgromes committed Sep 16, 2024
1 parent 6aef062 commit 79b1b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocols/LoRaWAN/LoRaWAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ int16_t LoRaWANNode::receiveCommon(uint8_t dir, const LoRaWANChannel_t* dlChanne
// Any frame received by an end-device containing a MACPayload greater than
// the specified maximum length M over the data rate used to receive the frame
// SHALL be silently discarded.
if(this->phyLayer->getPacketLength() > maxPayLen + 13) { // mandatory FHDR is 12/13 bytes
if(this->phyLayer->getPacketLength() > (size_t)(maxPayLen + 13)) { // mandatory FHDR is 12/13 bytes
return(0); // act as if no downlink was received
}

Expand Down

0 comments on commit 79b1b8c

Please sign in to comment.