From 9f036fff014100f7a209df07c5023928c7816285 Mon Sep 17 00:00:00 2001 From: penglei <1624952103@qq.com> Date: Wed, 5 Nov 2025 10:24:49 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96cat1=E5=AE=8F=E6=8E=A7?= =?utf8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp | 4 ++-- .../nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp | 2 +- code/sdk/zhihui/utils/custom_runtime.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp index 13f724d4e..505d062ce 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp @@ -135,7 +135,7 @@ namespace OHOS bool OtaModel::HasNetwork() const { int networkStatus = 0; -#ifdef SUPPORT_CAT1_SERVICE +#if defined(SUPPORT_CAT1_SERVICE) || defined(SUPPORT_PPP_SERVICE) // 检查网络连接状态 networkStatus = uapi_dev_runtime_get_cat1_networkstat(); #endif @@ -411,7 +411,7 @@ namespace OHOS int OtaModel::GetSignalStrength() { int sig = 0; -#ifdef SUPPORT_CAT1_SERVICE +#if defined(SUPPORT_CAT1_SERVICE) || defined(SUPPORT_PPP_SERVICE) sig = uapi_dev_runtime_get_cat1_signal(); #endif return sig; diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp index 8fc0d46bf..5476a2a44 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdModel.cpp @@ -1828,7 +1828,7 @@ bool previousHasNetwork = m_hasNetwork; // 从底层API获取最新的网络状态信息 - #ifdef SUPPORT_CAT1_SERVICE + #if defined(SUPPORT_CAT1_SERVICE) || defined(SUPPORT_PPP_SERVICE) m_simStatus = uapi_dev_runtime_get_cat1_simstat(); // SIM卡状态 m_cat1PowerStatus = uapi_dev_runtime_get_cat1_powerstat(); // CAT1电源状态 m_signalStrength = uapi_dev_runtime_get_cat1_signal(); // 信号强度 diff --git a/code/sdk/zhihui/utils/custom_runtime.h b/code/sdk/zhihui/utils/custom_runtime.h index f6d5893fa..7217d995e 100644 --- a/code/sdk/zhihui/utils/custom_runtime.h +++ b/code/sdk/zhihui/utils/custom_runtime.h @@ -181,7 +181,7 @@ void uapi_dev_runtime_set_shutting_down_status(uint8_t status); uint8_t uapi_dev_runtime_get_shutting_down_status(void); -#ifdef SUPPORT_CAT1_SERVICE +#if defined(SUPPORT_CAT1_SERVICE) || defined(SUPPORT_PPP_SERVICE) /***************************************cat1 runtime 变量设置获取函数**************************************************/ -- 2.17.1