From f75b0b8f28b9c877cfde7c713d53f79d373e8644 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Fri, 24 Oct 2025 10:52:04 +0800 Subject: [PATCH] =?utf8?q?fd230,fd272,=E5=85=B3=E9=97=ADFD230=5F650?= =?utf8?q?=E5=AE=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/callerlog/src/CallerLogModel.cpp | 18 +----------------- .../nativeui/makephone/src/CallingView.cpp | 2 -- .../makephone/src/MainCallingPresenter.cpp | 3 --- .../nativeui/phone/src/CallLogItem.cpp | 2 -- .../phone/src/DialingMethodPresenter.cpp | 1 - .../nativeui/phone/src/MainPhoneView.cpp | 2 -- .../nativeui/phone/src/PhoneCallPresenter.cpp | 2 -- .../src/RebootAndShutdownPresenter.cpp | 4 ---- .../debug_output_notification.cpp | 2 -- .../nativeui/callerlog/src/CallerLogModel.cpp | 19 ++----------------- .../nativeui/makephone/src/CallingView.cpp | 2 -- .../makephone/src/MainCallingPresenter.cpp | 3 --- .../nativeui/phone/src/CallLogItem.cpp | 2 -- .../phone/src/DialingMethodPresenter.cpp | 1 - .../nativeui/phone/src/MainPhoneView.cpp | 2 -- .../nativeui/phone/src/PhoneCallPresenter.cpp | 2 -- .../src/RebootAndShutdownPresenter.cpp | 4 ---- .../debug_output_notification.cpp | 4 ---- .../debug_output_notification.cpp | 4 ---- 19 files changed, 3 insertions(+), 76 deletions(-) diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/callerlog/src/CallerLogModel.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/callerlog/src/CallerLogModel.cpp index 32801d0d6..55b54296f 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/callerlog/src/CallerLogModel.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/callerlog/src/CallerLogModel.cpp @@ -25,9 +25,7 @@ // #include "PhoneAGService.h" -#ifdef FD230_650 #include "dial_sos_c.h" -#endif #ifdef SUPPORT_CAT1_SERVICE #include "cat1_ctl.h" @@ -169,16 +167,14 @@ void StatusReset(void) set_call_hungup_flag(0); #endif - #ifdef FD230_650 + set_TransCallToMobilePhone_falg(0); - #endif OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop(); // If the call is handling in the notification, the slice is not switched //if (!CallerLogModel::GetInstance()->GetNotifyFlag()) - // #ifdef FD230_650 if(CallerLogModel::GetInstance()->GetCallSource()==CallerLogModel::CallSourceCat1) { #ifdef SUPPORT_CAT1_HFP_AG_SERV @@ -674,7 +670,6 @@ static void NonWatchFinishHandle(int laststatus) } } - #ifdef FD230_650 if (GetCurrCallNum() == 0) { g_phoneStatus = PHONE_SINGLE_STATUS; @@ -689,7 +684,6 @@ static void NonWatchFinishHandle(int laststatus) sos_falg_add(); } - #endif } static void WatchFinishHandle(void) @@ -718,9 +712,7 @@ static void WatchFinishHandle(void) } g_phoneStatus = PHONE_SINGLE_STATUS; - #ifdef FD230_650 sos_falg_clean(); - #endif } void CAT1_ChangeStatusScreendisplay(int lastStatus) @@ -773,7 +765,6 @@ void UsingPhoneChangeStatusCallback(const PhoneCallInfo *phoneCall) DisshakeTimer(); - #ifdef FD230_650 if(phoneCall->operate==OPERATE_INCOMING) { uapi_SetSpeaker_Mute(true); @@ -783,7 +774,6 @@ void UsingPhoneChangeStatusCallback(const PhoneCallInfo *phoneCall) uapi_SetSpeaker_Mute(false); //OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop(); } - #endif if (phoneCall->operate == OPERATE_WATCH_FINISH && GetCurrCallNum() == 0) { g_callOperate = OPERATE_WATCH_FINISH; @@ -867,15 +857,11 @@ static void ScoConnectHandle(void) if(g_isCall==HFP_HF_CALL_STATE_INCOMING) { - #ifdef FD230_650 uapi_SetSpeaker_Mute(true); - #endif } else { - #ifdef FD230_650 uapi_SetSpeaker_Mute(false); - #endif OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop(); } @@ -1115,9 +1101,7 @@ void CallerLogModel::SetCallStatus(bool status) { callStatus = status; if(status){ - #ifdef FD230_650 sos_falg_clean(); - #endif } } diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/makephone/src/CallingView.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/makephone/src/CallingView.cpp index 844b1af03..a55e4e38d 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/makephone/src/CallingView.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/makephone/src/CallingView.cpp @@ -375,14 +375,12 @@ void CallingView::showdial(bool flag) void CallingView::text_updata_buf(const char *buf) { - #ifdef FD230_650 if (CallerLogModel::GetInstance()->GetCallSource() == CallerLogModel::CallSourceCat1){ SendDtfmStrNumberToCat1(buf[0]); } else{ uapi_hfp_send_DTMF_CODE(buf[0]); } - #endif char new_buf[16]={0}; const char*text_buf=label_number->GetText(); diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/makephone/src/MainCallingPresenter.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/makephone/src/MainCallingPresenter.cpp index b75fa2aff..9a4ca9f3e 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/makephone/src/MainCallingPresenter.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/makephone/src/MainCallingPresenter.cpp @@ -34,9 +34,7 @@ #include "NativeAbility.h" -// #ifdef FD230_650 #include "dial_sos_c.h" -// #endif #include "soundandvibration/include/SoundAndVibrationVolumeSettingC.h" namespace OHOS { @@ -193,7 +191,6 @@ bool MainCallingPresenter::HintsHandupClick() bool MainCallingPresenter::OnClick(UIView& view, const ClickEvent& event) { - // #ifdef FD230_650 UNUSED(event); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s",view.GetViewId()); if (!InitPointerValue()) { diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/CallLogItem.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/CallLogItem.cpp index 0544c4467..6bae63a5d 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/CallLogItem.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/CallLogItem.cpp @@ -190,9 +190,7 @@ namespace OHOS button_calllog_status.SetTextId(STR_DIALED_CALLS); button_calllog_status.SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff)); } - #ifdef FD230_650 call_log_type.SetSrc(data->calllogtype?PNG_CALL_LOG_PHONE_IMAGE:PNG_CALL_LOG_WATCH_IMAGE); - #endif } void CallLOGListitemView::SetUpChild() diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/DialingMethodPresenter.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/DialingMethodPresenter.cpp index ef0a1fa06..5a26a48c3 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/DialingMethodPresenter.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/DialingMethodPresenter.cpp @@ -51,7 +51,6 @@ namespace OHOS bool DialingMethodPresenter::OnClick(UIView &view, const ClickEvent &event) { -// #ifdef FD230_650 WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DialingMethodPresenter::OnClick"); std::string curViewId = view.GetViewId(); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s OnClick", curViewId.c_str()); diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/MainPhoneView.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/MainPhoneView.cpp index 86a3c8d07..05c51fb60 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/MainPhoneView.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/MainPhoneView.cpp @@ -337,9 +337,7 @@ namespace OHOS button_calllog_status[i]->SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff)); } - #ifdef FD230_650 call_log_type[i]->SetSrc(data->calllogtype?PNG_CALL_LOG_PHONE_IMAGE:PNG_CALL_LOG_WATCH_IMAGE); - #endif } diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/PhoneCallPresenter.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/PhoneCallPresenter.cpp index a6112dc90..7426a1077 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/PhoneCallPresenter.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/phone/src/PhoneCallPresenter.cpp @@ -141,9 +141,7 @@ namespace OHOS if(TelephonyInitInterface::DIALINGMETHOD == DIALINGMETHOD_USINGWATCHSIM) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DIALINGMETHOD_USINGWATCHSIM"); - // #ifdef FD230_650 cat1_UI_call_dial((char *)phoneNumber.c_str()); - // #endif } else if(TelephonyInitInterface::DIALINGMETHOD == DIALINGMETHOD_USINGPHONE) diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/rebootandshutdown/src/RebootAndShutdownPresenter.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/rebootandshutdown/src/RebootAndShutdownPresenter.cpp index a6b37cd2d..f92836af4 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/rebootandshutdown/src/RebootAndShutdownPresenter.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/rebootandshutdown/src/RebootAndShutdownPresenter.cpp @@ -14,9 +14,7 @@ #include "rebootandshutdown/include/RebootAndShutdownView.h" #include "rebootandshutdown/include/RebootAndShutdownModel.h" -#ifdef FD230_650 #include "dial_sos_c.h" -#endif #include "vibrator_service.h" @@ -121,9 +119,7 @@ namespace OHOS } else if (strcmp(view.GetViewId(), SOS_BUTTON_VIEWID) == 0) { - #ifdef FD230_650 start_SOS_phone_dail(); - #endif } return true; diff --git a/code/sdk/application/wearable/fd230/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp b/code/sdk/application/wearable/fd230/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp index 83e3c240f..758bead33 100644 --- a/code/sdk/application/wearable/fd230/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp +++ b/code/sdk/application/wearable/fd230/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp @@ -41,9 +41,7 @@ #include "system/include/SystemLogModel.h" #include "sleep/include/SleepModel.h" -// #ifdef FD230_650 #include "heartrate/include/HeartModel.h" -// #endif #include "health/health_service/health_service.h" #include "displaybrightness/include/DisplayBrightnessModel.h" #include "bluetooth/include/BluetoothModel.h" diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/callerlog/src/CallerLogModel.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/callerlog/src/CallerLogModel.cpp index 32801d0d6..4c6b0c3fb 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/callerlog/src/CallerLogModel.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/callerlog/src/CallerLogModel.cpp @@ -25,9 +25,7 @@ // #include "PhoneAGService.h" -#ifdef FD230_650 #include "dial_sos_c.h" -#endif #ifdef SUPPORT_CAT1_SERVICE #include "cat1_ctl.h" @@ -169,16 +167,13 @@ void StatusReset(void) set_call_hungup_flag(0); #endif - #ifdef FD230_650 set_TransCallToMobilePhone_falg(0); - #endif OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop(); // If the call is handling in the notification, the slice is not switched //if (!CallerLogModel::GetInstance()->GetNotifyFlag()) - // #ifdef FD230_650 if(CallerLogModel::GetInstance()->GetCallSource()==CallerLogModel::CallSourceCat1) { #ifdef SUPPORT_CAT1_HFP_AG_SERV @@ -674,7 +669,7 @@ static void NonWatchFinishHandle(int laststatus) } } - #ifdef FD230_650 + if (GetCurrCallNum() == 0) { g_phoneStatus = PHONE_SINGLE_STATUS; @@ -689,7 +684,7 @@ static void NonWatchFinishHandle(int laststatus) sos_falg_add(); } - #endif + } static void WatchFinishHandle(void) @@ -718,9 +713,7 @@ static void WatchFinishHandle(void) } g_phoneStatus = PHONE_SINGLE_STATUS; - #ifdef FD230_650 sos_falg_clean(); - #endif } void CAT1_ChangeStatusScreendisplay(int lastStatus) @@ -773,7 +766,6 @@ void UsingPhoneChangeStatusCallback(const PhoneCallInfo *phoneCall) DisshakeTimer(); - #ifdef FD230_650 if(phoneCall->operate==OPERATE_INCOMING) { uapi_SetSpeaker_Mute(true); @@ -783,7 +775,6 @@ void UsingPhoneChangeStatusCallback(const PhoneCallInfo *phoneCall) uapi_SetSpeaker_Mute(false); //OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop(); } - #endif if (phoneCall->operate == OPERATE_WATCH_FINISH && GetCurrCallNum() == 0) { g_callOperate = OPERATE_WATCH_FINISH; @@ -867,15 +858,11 @@ static void ScoConnectHandle(void) if(g_isCall==HFP_HF_CALL_STATE_INCOMING) { - #ifdef FD230_650 uapi_SetSpeaker_Mute(true); - #endif } else { - #ifdef FD230_650 uapi_SetSpeaker_Mute(false); - #endif OHOS::AlarmClockModel::GetInstance()->AlarmPlayerStop(); } @@ -1115,9 +1102,7 @@ void CallerLogModel::SetCallStatus(bool status) { callStatus = status; if(status){ - #ifdef FD230_650 sos_falg_clean(); - #endif } } diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/makephone/src/CallingView.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/makephone/src/CallingView.cpp index 844b1af03..a55e4e38d 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/makephone/src/CallingView.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/makephone/src/CallingView.cpp @@ -375,14 +375,12 @@ void CallingView::showdial(bool flag) void CallingView::text_updata_buf(const char *buf) { - #ifdef FD230_650 if (CallerLogModel::GetInstance()->GetCallSource() == CallerLogModel::CallSourceCat1){ SendDtfmStrNumberToCat1(buf[0]); } else{ uapi_hfp_send_DTMF_CODE(buf[0]); } - #endif char new_buf[16]={0}; const char*text_buf=label_number->GetText(); diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/makephone/src/MainCallingPresenter.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/makephone/src/MainCallingPresenter.cpp index b75fa2aff..9a4ca9f3e 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/makephone/src/MainCallingPresenter.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/makephone/src/MainCallingPresenter.cpp @@ -34,9 +34,7 @@ #include "NativeAbility.h" -// #ifdef FD230_650 #include "dial_sos_c.h" -// #endif #include "soundandvibration/include/SoundAndVibrationVolumeSettingC.h" namespace OHOS { @@ -193,7 +191,6 @@ bool MainCallingPresenter::HintsHandupClick() bool MainCallingPresenter::OnClick(UIView& view, const ClickEvent& event) { - // #ifdef FD230_650 UNUSED(event); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s",view.GetViewId()); if (!InitPointerValue()) { diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/CallLogItem.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/CallLogItem.cpp index 0544c4467..6bae63a5d 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/CallLogItem.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/CallLogItem.cpp @@ -190,9 +190,7 @@ namespace OHOS button_calllog_status.SetTextId(STR_DIALED_CALLS); button_calllog_status.SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff)); } - #ifdef FD230_650 call_log_type.SetSrc(data->calllogtype?PNG_CALL_LOG_PHONE_IMAGE:PNG_CALL_LOG_WATCH_IMAGE); - #endif } void CallLOGListitemView::SetUpChild() diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/DialingMethodPresenter.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/DialingMethodPresenter.cpp index ef0a1fa06..5a26a48c3 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/DialingMethodPresenter.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/DialingMethodPresenter.cpp @@ -51,7 +51,6 @@ namespace OHOS bool DialingMethodPresenter::OnClick(UIView &view, const ClickEvent &event) { -// #ifdef FD230_650 WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DialingMethodPresenter::OnClick"); std::string curViewId = view.GetViewId(); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%s OnClick", curViewId.c_str()); diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/MainPhoneView.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/MainPhoneView.cpp index 5e05cd1aa..29dd1f133 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/MainPhoneView.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/MainPhoneView.cpp @@ -337,9 +337,7 @@ namespace OHOS button_calllog_status[i]->SetTextColor(Color::GetColorFromRGBA(0x4f, 0xc3, 0x4c, 0xff)); } - #ifdef FD230_650 call_log_type[i]->SetSrc(data->calllogtype?PNG_CALL_LOG_PHONE_IMAGE:PNG_CALL_LOG_WATCH_IMAGE); - #endif } diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/PhoneCallPresenter.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/PhoneCallPresenter.cpp index a6112dc90..7426a1077 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/PhoneCallPresenter.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/phone/src/PhoneCallPresenter.cpp @@ -141,9 +141,7 @@ namespace OHOS if(TelephonyInitInterface::DIALINGMETHOD == DIALINGMETHOD_USINGWATCHSIM) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "DIALINGMETHOD_USINGWATCHSIM"); - // #ifdef FD230_650 cat1_UI_call_dial((char *)phoneNumber.c_str()); - // #endif } else if(TelephonyInitInterface::DIALINGMETHOD == DIALINGMETHOD_USINGPHONE) diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/rebootandshutdown/src/RebootAndShutdownPresenter.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/rebootandshutdown/src/RebootAndShutdownPresenter.cpp index a6b37cd2d..f92836af4 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/rebootandshutdown/src/RebootAndShutdownPresenter.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/rebootandshutdown/src/RebootAndShutdownPresenter.cpp @@ -14,9 +14,7 @@ #include "rebootandshutdown/include/RebootAndShutdownView.h" #include "rebootandshutdown/include/RebootAndShutdownModel.h" -#ifdef FD230_650 #include "dial_sos_c.h" -#endif #include "vibrator_service.h" @@ -121,9 +119,7 @@ namespace OHOS } else if (strcmp(view.GetViewId(), SOS_BUTTON_VIEWID) == 0) { - #ifdef FD230_650 start_SOS_phone_dail(); - #endif } return true; diff --git a/code/sdk/application/wearable/fd272/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp b/code/sdk/application/wearable/fd272/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp index 83e3c240f..6185732e1 100644 --- a/code/sdk/application/wearable/fd272/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp +++ b/code/sdk/application/wearable/fd272/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp @@ -41,9 +41,7 @@ #include "system/include/SystemLogModel.h" #include "sleep/include/SleepModel.h" -// #ifdef FD230_650 #include "heartrate/include/HeartModel.h" -// #endif #include "health/health_service/health_service.h" #include "displaybrightness/include/DisplayBrightnessModel.h" #include "bluetooth/include/BluetoothModel.h" @@ -716,11 +714,9 @@ namespace OHOS // 2. 获取模型里的数据(当前值与时间) uint32_t checkTime = 0; uint16_t currentHeartRate = 0; -#ifdef FD230_650 auto heartModel = HeartModel::GetInstance(); checkTime = heartModel->GetCheckTime(); currentHeartRate = heartModel->GetHeartdata(); -#endif std::string timestr = formatTime(checkTime); diff --git a/code/sdk/application/wearable/n9/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp b/code/sdk/application/wearable/n9/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp index 83e3c240f..6185732e1 100644 --- a/code/sdk/application/wearable/n9/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp +++ b/code/sdk/application/wearable/n9/service/msg_center/src/notify/debug_output_notification/debug_output_notification.cpp @@ -41,9 +41,7 @@ #include "system/include/SystemLogModel.h" #include "sleep/include/SleepModel.h" -// #ifdef FD230_650 #include "heartrate/include/HeartModel.h" -// #endif #include "health/health_service/health_service.h" #include "displaybrightness/include/DisplayBrightnessModel.h" #include "bluetooth/include/BluetoothModel.h" @@ -716,11 +714,9 @@ namespace OHOS // 2. 获取模型里的数据(当前值与时间) uint32_t checkTime = 0; uint16_t currentHeartRate = 0; -#ifdef FD230_650 auto heartModel = HeartModel::GetInstance(); checkTime = heartModel->GetCheckTime(); currentHeartRate = heartModel->GetHeartdata(); -#endif std::string timestr = formatTime(checkTime); -- 2.17.1