From 9e14cf0d29c681cf16d320df487bcae57b7e24db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B6=E4=B8=AD=E6=96=AD=E5=BB=B6=E8=BF=9F=E7=9A=84RTOS?= Date: Thu, 6 Aug 2026 16:26:09 +0000 Subject: [PATCH] update System/os_handler.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 零中断延迟的RTOS --- System/os_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/System/os_handler.c b/System/os_handler.c index 878009f0..637a4293 100644 --- a/System/os_handler.c +++ b/System/os_handler.c @@ -4,7 +4,7 @@ * @brief tCosyTick_Handler and sPendSV_Handler * @author 迟凯峰 * @version v3.0.4 - * @date 2026.08.06 + * @date 2026.08.07 ******************************************************************************/ #include "os_var.h" @@ -525,7 +525,7 @@ __IAR_WEAK s_u8_t sPendSV_Handler(void) MCUCFG_OSIT_ATTRIBUTE /* 每监控(每PendSV假定切换任务)*/ #if (SYSCFG_DEBUGGING == __ENABLED__) - if(true){ + if(s_task_current != OS_NULL){ m_stacklen_t len = mTaskStack_Check0(); if(s_task_current->stacklen_max < len){ s_task_current->stacklen_max = len;