[8.1.0]
[fea] [Vlm 接入]
This commit is contained in:
@@ -1567,7 +1567,9 @@ internal class DebugSettingView @JvmOverloads constructor(
|
||||
*/
|
||||
@SuppressLint("SetTextI18n")
|
||||
private fun setDomainControllerCheckedChangeListener() {
|
||||
etAutopilotIP.setText("192.168.1.")
|
||||
val string = SharedPrefsMgr.getInstance()
|
||||
.getString(SharedPrefsConstants.inputIpDomainController, "192.168.1.")
|
||||
etAutopilotIP.setText(string)
|
||||
etAutopilotIP.text?.let { etAutopilotIP.setSelection(it.length) }
|
||||
//设置工控机IP
|
||||
btnSetAutopilotIP.setOnClickListener {
|
||||
@@ -1575,6 +1577,7 @@ internal class DebugSettingView @JvmOverloads constructor(
|
||||
if (autoPilotIp.isNotEmpty()) {
|
||||
SSHAccountConfig.setRosMasterIp(autoPilotIp.split(":", ":").first())
|
||||
CallerAutoPilotControlManager.resetIpAddress(autoPilotIp)
|
||||
SharedPrefsMgr.getInstance().putString(SharedPrefsConstants.inputIpDomainController,autoPilotIp)
|
||||
} else {
|
||||
ToastUtils.showShort("请输入正确的IP地址")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user