Skip to content

Commit

Permalink
Fix #173: Allow validation of CNlike SessionCHannelMasks
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Jul 5, 2021
1 parent 18d064e commit f581d84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/arduino_lorawan_sessionstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ bool Arduino_LoRaWAN::SessionState::isValid() const
case Arduino_LoRaWAN::SessionChannelMask_Header::eMaskKind::kUSlike:
return this->V1.Channels.Header.Size == sizeof(this->V1.Channels.USlike);

case Arduino_LoRaWAN::SessionChannelMask_Header::eMaskKind::kCNlike:
return this->V1.Channels.Header.Size == sizeof(this->V1.Channels.CNlike);

default:
return false;
}
Expand Down

0 comments on commit f581d84

Please sign in to comment.