diff options
| author | LostCivilization <[email protected]> | 2023-05-04 22:11:33 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-04 22:11:33 +0800 |
| commit | 1efe3071c729aef7c1f3df086914a9b928647702 (patch) | |
| tree | e8ee56246d63c3c0d37511038c23a27d700e1039 /bsp | |
| parent | 6edd0586f23a2088dacfc34c5d514d0c0c7f2915 (diff) | |
[HUST CSE] 变量 tick 没有初始化 (#7424)
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/acm32/acm32f0x0-nucleo/drivers/drv_pm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bsp/acm32/acm32f0x0-nucleo/drivers/drv_pm.c b/bsp/acm32/acm32f0x0-nucleo/drivers/drv_pm.c index c39190df0b..63150e4063 100644 --- a/bsp/acm32/acm32f0x0-nucleo/drivers/drv_pm.c +++ b/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); } |
