[LoRaWAN] Fix narrow type comparison

pull/1222/head
jgromes 2024-09-10 20:27:49 +01:00
rodzic 78a6897e1b
commit 8aedf53272
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -2800,7 +2800,7 @@ int16_t LoRaWANNode::setPhyProperties(const LoRaWANChannel_t* chnl, uint8_t dir,
// in the LoRa Alliance Technical Recommendation #13.
bool LoRaWANNode::csmaChannelClear(uint8_t difs, uint8_t numBackoff) {
// DIFS phase: perform #DIFS CAD operations
uint8_t numCads = 0;
uint16_t numCads = 0;
for (; numCads < difs; numCads++) {
if (!this->cadChannelClear()) {
return(false);