From: p15692025051 <846603105@qq.com> Date: Mon, 15 Apr 2024 01:37:17 +0000 (+0800) Subject: 跌倒 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=e7333aaf6a4ba2b7adb3cf1a41e00449392410fb;p=mirrors%2FASR3603_Z5.git 跌倒 --- diff --git a/2.sdk/sdk/gui/lv_watch/lv_apps/factory_mode/factory_mode_test.c b/2.sdk/sdk/gui/lv_watch/lv_apps/factory_mode/factory_mode_test.c index 644d37e6..c205285a 100644 --- a/2.sdk/sdk/gui/lv_watch/lv_apps/factory_mode/factory_mode_test.c +++ b/2.sdk/sdk/gui/lv_watch/lv_apps/factory_mode/factory_mode_test.c @@ -1140,10 +1140,26 @@ static lv_obj_t * factorymode_gps_test_create(lv_obj_t * activity_obj) #endif #if 1 // def __MMI_ZHSX_SUPPORT__ +#if fall_detect_debug +int count_13 = 0; +int count_14 = 0; +int count_15 = 0; +int count_16 = 0; + +int count_10 = 0; +int count_9 = 0; +int count_8 = 0; +int count_7 = 0; +#endif + static void mmi_factorymode_gsensor_status_update(lv_anim_t * anim) { #if 1 char str[128] = {0}; +#if fall_detect_debug + sprintf(str, "13:% 3d 14:% 3d\n15:% 3d 16:% 3d\n10:% 3d 09:% 3d\n08:% 3d 07:% 3d\n", + count_13,count_14,count_15,count_16,count_10,count_9,count_8,count_7); +#else uint8_t id = mmi_gsensor_sensor_id_get(); int16_t chip_x = 0, chip_y = 0, chip_z = 0; @@ -1153,8 +1169,10 @@ static void mmi_factorymode_gsensor_status_update(lv_anim_t * anim) "id :", id, chip_x, chip_y, chip_z, (char *)lv_lang_get_text(WATCH_TEXT_ID_GSENSOR_SUCCESS)); - - lv_label_set_text(anim->var, str); +#endif + + + lv_label_set_text(anim->var, str); #else int16_t chip_x = 0, chip_y = 0, chip_z = 0;