From ef0045a6dd4ec37697024a2cc93ee5844d98ce33 Mon Sep 17 00:00:00 2001 From: paragdixit-g <57504008+paragdixit-g@users.noreply.github.com> Date: Tue, 9 Jun 2020 12:34:44 -0700 Subject: [PATCH] [posix] fix otPlatAlarmMicroGetNow to use scaled time (#5070) This makes it consistent with MilliGetNow() counterpart. --- src/posix/platform/alarm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posix/platform/alarm.cpp b/src/posix/platform/alarm.cpp index f74f1367c..838d38232 100644 --- a/src/posix/platform/alarm.cpp +++ b/src/posix/platform/alarm.cpp @@ -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(platformAlarmGetNow()); } void otPlatAlarmMicroStartAt(otInstance *aInstance, uint32_t aT0, uint32_t aDt)