From 410aed19f95bf9ea02c8dfa19f9196e1f17401ad Mon Sep 17 00:00:00 2001 From: 771-8bit Date: Fri, 15 Nov 2024 18:00:52 +0900 Subject: [PATCH] ret_err_code Co-authored-by: Ryo Suzumoto --- system/watchdog_timer/watchdog_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/watchdog_timer/watchdog_timer.c b/system/watchdog_timer/watchdog_timer.c index dc535e8ae..3ca53bf9c 100644 --- a/system/watchdog_timer/watchdog_timer.c +++ b/system/watchdog_timer/watchdog_timer.c @@ -112,7 +112,7 @@ CCP_CmdRet Cmd_WDT_SET_TIMER(const CommonCmdPacket* packet) Printf("WDT timer set to %d\n", (uint32_t)wdt_config->timer_setting); if (ret != 0) { - return CCP_make_cmd_ret_without_err_code(CCP_EXEC_ILLEGAL_CONTEXT); + return CCP_make_cmd_ret(CCP_EXEC_ILLEGAL_CONTEXT, (uint32_t)ret); } return CCP_make_cmd_ret_without_err_code(CCP_EXEC_SUCCESS); }