Update HAL_Timer_tencentos_tiny.c
This commit is contained in:
@@ -50,7 +50,7 @@ char* HAL_Timer_current(void)
|
||||
long time_sec;
|
||||
|
||||
time_sec = HAL_Timer_current_sec();
|
||||
memset(now_time_str, 0, 20);
|
||||
memset(now_time_str, 0, sizeof(now_time_str));
|
||||
snprintf(now_time_str, 20, "%ld", time_sec);
|
||||
|
||||
return now_time_str;
|
||||
|
Reference in New Issue
Block a user