diff --git a/Middlewares/Third_Party/LoRaWAN/Mac/Region/RegionCommon.c b/Middlewares/Third_Party/LoRaWAN/Mac/Region/RegionCommon.c index cdf0630c..321ea268 100644 --- a/Middlewares/Third_Party/LoRaWAN/Mac/Region/RegionCommon.c +++ b/Middlewares/Third_Party/LoRaWAN/Mac/Region/RegionCommon.c @@ -347,7 +347,7 @@ TimerTime_t RegionCommonUpdateBandTimeOff( bool joined, Band_t* bands, // Check if the band is ready for transmission. Its ready, // when the duty cycle is off, or the TimeCredits of the band // is higher than the credit costs for the transmission. - if( ( bands[i].TimeCredits > creditCosts ) || + if( ( bands[i].TimeCredits >= creditCosts ) || ( ( dutyCycleEnabled == false ) && ( joined == true ) ) ) { bands[i].ReadyForTransmission = true;