[HUST CSE] 变量 tick 没有初始化 (#7424)
This commit is contained in:
parent
6edd0586f2
commit
1efe3071c7
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue