From 2c752eecaec79123ab100b940844783af8097a3a Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Fri, 31 May 2024 23:15:56 +0800 Subject: [PATCH] =?utf8?q?WEARABLE=5FLOG=5FDEBUG=E6=94=BE=E5=88=B0=20confi?= =?utf8?q?g.py=E4=B8=AD=EF=BC=8C=E4=BF=9D=E8=AF=81=E6=89=80=E6=9C=89?= =?utf8?q?=E6=A8=A1=E5=9D=97=E9=83=BD=E5=8F=97=E6=8E=A7=E3=80=82=E4=BC=98?= =?utf8?q?=E5=8C=96=E9=83=A8=E5=88=86=E6=89=93=E5=8D=B0=E4=BB=A5=E5=8F=8A?= =?utf8?q?=E5=8E=BB=E6=8E=89=E6=97=A0=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../brandy/brandy_standard/thread_pri_init.c | 16 ++++------------ .../wstp/at_service/app/app_at_process.c | 4 ++-- .../build/config/target_config/brandy/config.py | 1 + 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/code/sdk/application/brandy/brandy_standard/thread_pri_init.c b/code/sdk/application/brandy/brandy_standard/thread_pri_init.c index ea69e476a..8be0240d8 100755 --- a/code/sdk/application/brandy/brandy_standard/thread_pri_init.c +++ b/code/sdk/application/brandy/brandy_standard/thread_pri_init.c @@ -434,32 +434,24 @@ static void thread_main(const void *unused) #endif -// #ifdef MAG_MMC5603 -// uapi_mag_service_init(); -// #endif + #ifdef ACC_LIS2DOC - uapi_acc_service_init(); + // uapi_acc_service_init(); #endif -// #ifdef SUPPORT_PPG_SERVICE -// uapi_ppg_service_init(); -// #endif - #ifdef ENABLE_SLIP slip_uart_init(); #endif uapi_custom_cmd_service_init(); -// #ifdef ENABLE_CYWEE -// uapi_cywee_service_init(); -// #endif + #ifdef SUPPORT_ALIPAY_SEC uapi_alipay_svr_init(); #endif - // ble_hid_server_init(); + #ifdef SUPPORT_CAT1_SERVICE cat1_server_init(); diff --git a/code/sdk/application/wstp/at_service/app/app_at_process.c b/code/sdk/application/wstp/at_service/app/app_at_process.c index 546f281bc..3ba87d6bc 100755 --- a/code/sdk/application/wstp/at_service/app/app_at_process.c +++ b/code/sdk/application/wstp/at_service/app/app_at_process.c @@ -2419,7 +2419,7 @@ uint8_t mcu_pms_is_screen_on(void) { const power_display_svr_api_t *display_api = power_display_svr_get_api(); screen_state_t state = display_api->get_screen_state(); - wstp_print("app get screen state = %u, on is %u, off is %u. \r\n", state, SCREEN_ON, SCREEN_OFF); + wstp_print("app get screen state = %s . \r\n", state==SCREEN_ON?"on":"off"); if( state == SCREEN_ON){ return 1; }else{ @@ -2432,7 +2432,7 @@ static uint32_t mcu_pms_get_screen_state(uint8_t *para, uint32_t para_len) unused(para); const power_display_svr_api_t *display_api = power_display_svr_get_api(); screen_state_t state = display_api->get_screen_state(); - wstp_print("app get screen state = %u, on is %u, off is %u. \r\n", state, SCREEN_ON, SCREEN_OFF); + wstp_print("app get screen state = %s . \r\n", state==SCREEN_ON?"on":"off"); return ERRCODE_SUCC; } #endif diff --git a/code/sdk/build/config/target_config/brandy/config.py b/code/sdk/build/config/target_config/brandy/config.py index bce4505d0..ae39c1f09 100755 --- a/code/sdk/build/config/target_config/brandy/config.py +++ b/code/sdk/build/config/target_config/brandy/config.py @@ -116,6 +116,7 @@ target = { 'SW_UART_DEBUG', 'SAVE_EXC_INFO', 'HASH_MEM_COPY', 'JS_ENABLE', 'CONFIG_LOW_POWER_TEST', 'ENABLE_ECC','MIPI_ULPS_SUPPORT','SUPPORT_ALIPAY_SEC', 'FT_SINGLE_UART', + # 'WEARABLE_LOG_DEBUG', 'PPG_HX3695', # 'ACC_LIS2DOC', 'ENABLE_CYWEE', -- 2.17.1