1
0
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:
Alexandre Abadie 2018-09-25 09:40:05 +02:00
parent 193491f6e9
commit bd1968cac4

View File

@ -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)