From 546f904f0c9d5163ff525d3cbca4dbf0ec86c9c5 Mon Sep 17 00:00:00 2001 From: Guohezu001 Date: Tue, 29 Oct 2024 10:59:54 +0800 Subject: [PATCH] fix:watchdog redefinition error --- bsp/nxp/imx/imx6ull-smart/drivers/drv_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/nxp/imx/imx6ull-smart/drivers/drv_wdt.c b/bsp/nxp/imx/imx6ull-smart/drivers/drv_wdt.c index ec11dbdc75..f61cc84fac 100644 --- a/bsp/nxp/imx/imx6ull-smart/drivers/drv_wdt.c +++ b/bsp/nxp/imx/imx6ull-smart/drivers/drv_wdt.c @@ -168,7 +168,7 @@ static rt_err_t imx6ull_wdog_control(watchdog_t *wdt, int cmd, void *args) } break; default: - return RT_ERROR; + return -RT_ERROR; } return RT_EOK;