diff --git a/samples/sample_c/platform/linux/common/osal/osal.c b/samples/sample_c/platform/linux/common/osal/osal.c index 1cb0c22c..41f489ca 100644 --- a/samples/sample_c/platform/linux/common/osal/osal.c +++ b/samples/sample_c/platform/linux/common/osal/osal.c @@ -320,7 +320,7 @@ T_DjiReturnCode Osal_GetTimeUs(uint64_t *us) if (s_localTimeUsOffset == 0) { s_localTimeUsOffset = *us; } else { - *us = *us - s_localTimeMsOffset; + *us = *us - s_localTimeUsOffset; } return DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS; @@ -344,4 +344,4 @@ void Osal_Free(void *ptr) free(ptr); } -/****************** (C) COPYRIGHT DJI Innovations *****END OF FILE****/ \ No newline at end of file +/****************** (C) COPYRIGHT DJI Innovations *****END OF FILE****/