Merge pull request #4596 from mysterywolf/time

[time][bug] LOG_W will cause a recursive printing if ulog timestamp function is turned on
This commit is contained in:
Bernard Xiong 2021-04-12 08:16:05 +08:00 committed by GitHub
commit 783135303b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -224,7 +224,8 @@ RT_WEAK time_t time(time_t *t)
if(time_now == (time_t)-1)
{
LOG_W("Cannot find a RTC device to provide time!");
/* LOG_W will cause a recursive printing if ulog timestamp function is turned on */
rt_kprintf("Cannot find a RTC device to provide time!\r\n");
errno = ENOSYS;
}