From: SnickerSun Date: Sat, 27 Apr 2024 11:54:14 +0000 (+0800) Subject: 产测中添加关闭蓝牙cat1进行睡眠电流测试的按钮 X-Git-Tag: release_V1.2.70_20241020_135402~1025^2~42^2~7 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=9d1c3afc189fcfe7e4f62caeca6fd34b13f328be;p=mirrors%2FFD230.git 产测中添加关闭蓝牙cat1进行睡眠电流测试的按钮 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/producttest/include/testPresenter.h b/code/sdk/application/wearable/fd230app/nativeui/producttest/include/testPresenter.h index f9d538c99..c79d6a1f6 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/producttest/include/testPresenter.h +++ b/code/sdk/application/wearable/fd230app/nativeui/producttest/include/testPresenter.h @@ -35,6 +35,7 @@ namespace OHOS HRSENSON, GSENSON, OLDTEST, + DEEPSLEEP, shutdown, TEST_1, diff --git a/code/sdk/application/wearable/fd230app/nativeui/producttest/src/testPresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/producttest/src/testPresenter.cpp index b71341d60..65ea32f5a 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/producttest/src/testPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/producttest/src/testPresenter.cpp @@ -52,6 +52,7 @@ namespace OHOS {HRSENSON,"hrsensonbutton", "gsensonbutton_next",true}, {GSENSON,"gsensonbutton","xxxx" ,true}, {OLDTEST,"oldtestbutton","oldtestexit",true}, + {DEEPSLEEP,"deepsleep","xxxxxxxxx",true}, {shutdown,"shutdown","xxxxxxxxx",true}, }; // {FACTORYRESETVIEW,"FactoryResetButton",true}, @@ -199,7 +200,16 @@ namespace OHOS { uapi_poweroff_device(); } - + if(strcmp(view.GetViewId(),"deepsleep") == 0) + { + //TODO: close bt and cat1 , then deepsleep + stop_custom_ble_service(); + LOS_Msleep(50); + uapi_set4GCapability(false); + LOS_Msleep(50); + mcu_pm_lcd_off(NULL,NULL); + return true; + } for(int i=0;i