BugID:18874104: Fcnt down problem when over 65535
@@ -239,11 +239,11 @@ LoRaMacFCntHandlerStatus_t LoRaMacGetFCntDown( AddressIdentifier_t addrID, FType
*currentDown = previousDown + fCntDiff;
}
+ return LORAMAC_FCNT_HANDLER_MAX_GAP_FAIL;
}
}
}
- #if 0
// For LoRaWAN 1.0.X only, check maxFCntGap
if( lrWanVersion.Fields.Minor == 0 )
{
@@ -252,7 +252,7 @@ LoRaMacFCntHandlerStatus_t LoRaMacGetFCntDown( AddressIdentifier_t addrID, FType
return LORAMAC_FCNT_HANDLER_MAX_GAP_FAIL;
}
}
- #endif
+
return LORAMAC_FCNT_HANDLER_SUCCESS;
}
