pkarashchenko commented on a change in pull request #5503:
URL: https://github.com/apache/incubator-nuttx/pull/5503#discussion_r812785400



##########
File path: drivers/audio/cxd56.c
##########
@@ -2922,7 +2922,7 @@ static int cxd56_start(FAR struct audio_lowerhalf_s 
*lower)
       if (priv->mic_boot_start != 0x0ull)
         {
           struct timespec end;
-          if (clock_gettime(CLOCK_REALTIME, &end) >= 0)
+          if (clock_systime_timespec(&end) >= 0)

Review comment:
       ```suggestion
             if (clock_systime_timespec(&end) == 0)
   ```

##########
File path: arch/arm/src/lc823450/lc823450_rtc.c
##########
@@ -660,7 +660,7 @@ int up_rtc_getrawtime(FAR struct timespec *ts)
   struct timespec now;
   struct timespec diff;
 
-  clock_gettime(CLOCK_MONOTONIC, &now);
+  clock_systime_timespec(&now);

Review comment:
       I think we should keep `clock_gettime(CLOCK_MONOTONIC, &now);` here.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to