From: SnickerSun Date: Thu, 25 Apr 2024 11:04:32 +0000 (+0800) Subject: 修复cat1 version不更新问题 X-Git-Tag: release_V1.2.70_20241020_135402~1125^2~1 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=89f33fd7a1ce8a62949fccdb4473fe8153165987;p=mirrors%2FFD230.git 修复cat1 version不更新问题 --- diff --git a/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp b/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp index dd8ed026d..3efbca41d 100644 --- a/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp +++ b/code/sdk/drivers/peripheral/slip/cat1Service/cat1_server.cpp @@ -173,7 +173,7 @@ void udp_send_msg_toCat1(char cmd,char *content) uapi_cat1_wakeup_cat1(0); } -#define BOOTMSG_HEADER_STR "BOOTUP:" +#define BOOTMSG_HEADER_STR "BOOTUP," #define BOOTMSG_HEADER_STR_LEN strlen(BOOTMSG_HEADER_STR) #define NETSTAT_HEADER_STR "imei:" #define NETSTAT_HEADER_STR_LEN strlen(NETSTAT_HEADER_STR) @@ -441,15 +441,15 @@ int cat1_handle_version_msg(struct tcp_msg_t *msg) // BOOTUP:pyVer,PY_SRV_V4,modemVer,EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312 // pyVer,PY_SRV_V4,modemVer,EG810MCNLAR06A01M08_VOLTE_OCPU_QPY_BETA0312 // imei:860132060352796,sim:0,oper:-1,signal:99,net:([99, 0, 0, 0], [0, 0, 0, 0, 0]) - + if(decodeVersion(msg->buffer) == 0) { runtime_status_t * runtime = get_device_runtime_status(); OHOS::ConfigModel::GetInstance()->SetpyVer(runtime->cat1_runtime.pyVer); OHOS::ConfigModel::GetInstance()->SetmoderVer(runtime->cat1_runtime.modemVer); - cat1_msg_event_sendmsg_toUI("verupdate"); + cat1_msg_event_sendmsg_toUI("verupdate"); } - + return 1; }