mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-23 23:20:43 +00:00
!1482 【usb和无线独立控制】【控制参数默认值设置】
Merge pull request !1482 from bchen90/master
This commit is contained in:
commit
b59a466cbd
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user