From d969dd0e7e6d8f403f71467b47f72695d89190bd Mon Sep 17 00:00:00 2001 From: stark1898y <1658608470@qq.com> Date: Sat, 8 Feb 2025 18:03:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98+1V1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/src/bsp_nt26k.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bsp/src/bsp_nt26k.c b/bsp/src/bsp_nt26k.c index 83815b0..36ed524 100644 --- a/bsp/src/bsp_nt26k.c +++ b/bsp/src/bsp_nt26k.c @@ -1461,7 +1461,7 @@ static void Nt26k_Life_Thread_Entry(void *parameter) struct at_device_nt26k *nt26k = &_dev; struct at_device *device = at_device_get_by_name(AT_DEVICE_NAMETYPE_NETDEV, nt26k->device_name); RT_ASSERT(device); - rt_err_t result = RT_EOK; + rt_err_t result = RT_ETIMEOUT; rt_uint32_t delay_n = 0; at_response_t resp = RT_NULL; LOG_D("nt26k_life_thread entry\n"); @@ -1568,6 +1568,7 @@ static void Nt26k_Life_Thread_Entry(void *parameter) } else { + result = -RT_ETIMEOUT; goto __exit; } } @@ -1579,6 +1580,7 @@ static void Nt26k_Life_Thread_Entry(void *parameter) else { delay_n = 0; + result = -RT_ETIMEOUT; goto __exit; } __exit: