mirror of
https://github.com/espressif/openthread.git
synced 2026-07-27 22:37:45 +00:00
[posix] fix otPlatAlarmMicroGetNow to use scaled time (#5070)
This makes it consistent with MilliGetNow() counterpart.
This commit is contained in:
@@ -98,7 +98,7 @@ void otPlatAlarmMilliStop(otInstance *aInstance)
|
||||
#if OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE
|
||||
uint32_t otPlatAlarmMicroGetNow(void)
|
||||
{
|
||||
return (uint32_t)(otPlatTimeGet());
|
||||
return static_cast<uint32_t>(platformAlarmGetNow());
|
||||
}
|
||||
|
||||
void otPlatAlarmMicroStartAt(otInstance *aInstance, uint32_t aT0, uint32_t aDt)
|
||||
|
||||
Reference in New Issue
Block a user