From eaa3fb4ddf77dbd4cb5f1d06aa07d15706dd3f70 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Sat, 9 Nov 2024 17:17:28 +0800 Subject: [PATCH] =?utf8?q?#1148=EF=BC=8C=E8=A7=A3=E5=86=B3=E6=89=8B?= =?utf8?q?=E8=A1=A8=E5=BC=80=E6=9C=BA=E5=90=8E=E4=BC=9A=E9=BB=91=E5=B1=8F?= =?utf8?q?=E4=B8=A4=E6=AC=A1=E4=BA=AE=E5=BA=A6=E4=BC=9A=E7=AA=81=E7=84=B6?= =?utf8?q?=E5=8F=98=E9=AB=98=EF=BC=8C=E7=84=B6=E5=90=8E=E5=86=8D=E5=8F=98?= =?utf8?q?=E4=B8=BA=E8=AE=BE=E7=BD=AE=E4=BA=AE=E5=BA=A6=E9=97=AE=E9=A2=98?= =?utf8?q?=EF=BC=8C=E5=B0=86=E4=BA=AE=E5=BA=A6=E5=92=8C=E4=BA=AE=E5=B1=8F?= =?utf8?q?=E6=97=B6=E9=97=B4=E6=94=BE=E5=9C=A8InitNativeLauncher=E4=B8=AD?= =?utf8?q?=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativelauncher/src/NativeLauncher.cpp | 6 ++++++ code/sdk/drivers/peripheral/utils/custom_utils.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp b/code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp index 251d75f2f..a8cd92607 100644 --- a/code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp +++ b/code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp @@ -560,6 +560,12 @@ namespace OHOS //更新主表盘配置 MainModel::GetInstance().InitDialState(); + // 初始化屏幕亮度 + cm_initScreenBrightness(); + + // 初始化屏幕时长 + cm_initializeScreenDuration(); + // 开机增加震动 页面启动震动一次 ui_api_vibrate_once_func(); } diff --git a/code/sdk/drivers/peripheral/utils/custom_utils.c b/code/sdk/drivers/peripheral/utils/custom_utils.c index 2a820252e..eb878a620 100644 --- a/code/sdk/drivers/peripheral/utils/custom_utils.c +++ b/code/sdk/drivers/peripheral/utils/custom_utils.c @@ -454,8 +454,8 @@ void startup_post_init_task(void) stop_custom_ble_service(); } - cm_initScreenBrightness(); - cm_initializeScreenDuration(); + // cm_initScreenBrightness(); + // cm_initializeScreenDuration(); cm_initializeRaiseToWake(); // cm_initializeVibrationModel(); cm_initializeSilentModel(); -- 2.17.1