From 387d1ffc16ce9e050403baee0ed07f3d9accf632 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期五, 04 七月 2025 14:55:15 +0800 Subject: [PATCH] 初步移植完成0.6.8SDK,但发送有len太长未找到原因 --- keil/include/components/app/src/app.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/keil/include/components/app/src/app.c b/keil/include/components/app/src/app.c index ebbb4bf..e6767eb 100644 --- a/keil/include/components/app/src/app.c +++ b/keil/include/components/app/src/app.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2023 Beijing Hanwei Innovation Technology Ltd. Co. and + * Copyright (c) 2019-2025 Beijing Hanwei Innovation Technology Ltd. Co. and * its subsidiaries and affiliates (collectly called MKSEMI). * * All rights reserved. @@ -41,6 +41,8 @@ #include "mk_trace.h" #include "app.h" +#ifdef WSF_EN + static struct APP_CB_T app_cb; int app_init(uint8_t handle_id) @@ -65,12 +67,12 @@ void app_timer_set(uint8_t id, uint32_t ms, uint8_t mode) { - WsfTimerStartMs(&app_cb.app_timer[id], ms, mode); + mk_timer_list_start_timer(&app_cb.app_timer[id], ms, mode); } void app_timer_clr(uint8_t id) { - WsfTimerStop(&app_cb.app_timer[id]); + mk_timer_list_stop_timer(&app_cb.app_timer[id]); } void app_button_event_set(enum APP_EVT_ID_T evt) @@ -87,3 +89,5 @@ { WsfBufFree(pBuf); } + +#endif -- Gitblit v1.9.3