Home
last modified time | relevance | path

Searched refs:timeDiff (Results 1 – 1 of 1) sorted by relevance

/loramac-node-3.4.0/src/mac/region/
DRegionCommon.c114 SysTime_t timeDiff = { 0 }; in SetMaxTimeCredits() local
137timeDiff = SysTimeSub( elapsedTimeSinceStartup, SysTimeFromMs( band->LastMaxCreditAssignTime ) ); in SetMaxTimeCredits()
143 ( timeDiff.Seconds >= BACKOFF_24_HOURS_IN_S ) ) in SetMaxTimeCredits()
149timeDiff.Seconds = ( elapsedTimeSinceStartup.Seconds - BACKOFF_DUTY_CYCLE_24_HOURS_IN_S ) / BACKOF… in SetMaxTimeCredits()
150 timeDiff.Seconds *= BACKOFF_24_HOURS_IN_S; in SetMaxTimeCredits()
151 timeDiff.Seconds += BACKOFF_DUTY_CYCLE_24_HOURS_IN_S; in SetMaxTimeCredits()
152 timeDiff.SubSeconds = 0; in SetMaxTimeCredits()
153 band->LastMaxCreditAssignTime = SysTimeToMs( timeDiff ); in SetMaxTimeCredits()