mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/semtech-loramac: avoid conversion issue with timers
This commit is contained in:
parent
193491f6e9
commit
bd1968cac4
@ -69,8 +69,8 @@ void TimerSetValue(TimerEvent_t *obj, uint32_t value)
|
||||
|
||||
TimerTime_t TimerGetCurrentTime(void)
|
||||
{
|
||||
uint64_t CurrentTime = xtimer_now_usec64();
|
||||
return (TimerTime_t)CurrentTime / US_PER_MS;
|
||||
uint64_t CurrentTime = xtimer_now_usec64() / US_PER_MS;
|
||||
return (TimerTime_t)CurrentTime;
|
||||
}
|
||||
|
||||
TimerTime_t TimerGetElapsedTime(TimerTime_t savedTime)
|
||||
|
Loading…
Reference in New Issue
Block a user