[HUST CSE] 变量 tick 没有初始化 (#7424)

This commit is contained in:
LostCivilization 2023-05-04 22:11:33 +08:00 committed by GitHub
parent 6edd0586f2
commit 1efe3071c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -135,6 +135,8 @@ static rt_tick_t _pm_timer_get_tick(struct rt_pm *pm)
{
rt_tick_t tick;
RT_ASSERT(pm != RT_NULL);
tick = 1;
return get_os_tick_from_pm_tick(tick);
}