!1482 【usb和无线独立控制】【控制参数默认值设置】

Merge pull request !1482 from bchen90/master
This commit is contained in:
openharmony_ci 2024-08-22 11:27:06 +00:00 committed by Gitee
commit b59a466cbd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -258,6 +258,7 @@ bool HdcDaemonUnity::SetDeviceRunMode(const char *cmd)
// hdc tmode port
if (token == nullptr) {
LogMsg(MSG_OK, "Set device run mode successful.");
SystemDepend::SetDevItem("persist.hdc.mode", "tcp");
SystemDepend::SetDevItem("persist.hdc.mode.tcp", "enable");
} else {
/*
@ -274,6 +275,7 @@ bool HdcDaemonUnity::SetDeviceRunMode(const char *cmd)
return false;
}
LogMsg(MSG_OK, "Set device run mode successful.");
SystemDepend::SetDevItem("persist.hdc.mode", "tcp");
SystemDepend::SetDevItem("persist.hdc.port", token);
SystemDepend::SetDevItem("persist.hdc.mode.tcp", "enable");
}