Browse Source

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

LostCivilization 2 years ago
parent
commit
1efe3071c7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      bsp/acm32/acm32f0x0-nucleo/drivers/drv_pm.c

+ 2 - 0
bsp/acm32/acm32f0x0-nucleo/drivers/drv_pm.c

@@ -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);
 }