diff --git a/System/os_debug.c b/System/os_debug.c index ff434abe..2aa919e7 100644 --- a/System/os_debug.c +++ b/System/os_debug.c @@ -3,8 +3,8 @@ * @file os_debug.c * @brief DEBUG接口(串口发送和接收解析) * @author 迟凯峰 - * @version V1.3.0 - * @date 2024.01.23 + * @version V1.3.1 + * @date 2024.02.23 ******************************************************************************/ #include "os_link.h" @@ -122,16 +122,15 @@ uCreateTask_TimInt(OS_TMID_DEBUGGER, false, Debugger, SYSCFG_TASKPRIORITY - 1, M uCreateHook_TimQry(OS_TMID_DEBUGHOOK, s_debug_sendtype, false, debug_hook) { - if(s_debug_sendtype & OS_DEBUG_SEND_CMDLINE){ - s_debug_sendtype &= ~OS_DEBUG_SEND_CMDLINE; - s_debug_sendptr = s_cmdline_sendbuff; - SYSCFG_DEBUGSEND; - } - else if(s_debug_sendtype & OS_DEBUG_SEND_TASKMGR){ + if(s_debug_sendtype & OS_DEBUG_SEND_TASKMGR){ s_debug_sendtype &= ~OS_DEBUG_SEND_TASKMGR; s_debug_sendptr = s_taskmgr_sendbuff; - SYSCFG_DEBUGSEND; } + else if(s_debug_sendtype & OS_DEBUG_SEND_CMDLINE){ + s_debug_sendtype &= ~OS_DEBUG_SEND_CMDLINE; + s_debug_sendptr = s_cmdline_sendbuff; + } + SYSCFG_DEBUGSEND; } #endif