timers/watchdog: fix build warning
drivers/timers/watchdog.c:57:5: warning: "CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL" is not defined, evaluates to 0 [-Wundef] 57 | CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: hejianliang3 <hejianliang3@xiaomi.com> Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
031c89db89
commit
e88a49007d
@ -53,6 +53,8 @@
|
||||
#define WATCHDOG_AUTOMONITOR_TIMEOUT_MSEC \
|
||||
(1000 * CONFIG_WATCHDOG_AUTOMONITOR_TIMEOUT)
|
||||
|
||||
#if defined(CONFIG_WATCHDOG_AUTOMONITOR_BY_TIMER) || \
|
||||
defined(CONFIG_WATCHDOG_AUTOMONITOR_BY_WORKER)
|
||||
#if (CONFIG_WATCHDOG_AUTOMONITOR_TIMEOUT == \
|
||||
CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL)
|
||||
#define WATCHDOG_AUTOMONITOR_PING_INTERVAL \
|
||||
@ -61,6 +63,7 @@
|
||||
#define WATCHDOG_AUTOMONITOR_PING_INTERVAL \
|
||||
SEC2TICK(CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user