ENH:direct connected devices support fram mode

jira:[none]

Change-Id: I57da9b59983f6defab4401302b212abe03ebec24
This commit is contained in:
tao wang 2025-04-07 20:20:43 +08:00 committed by lane.wei
parent aa3aeee73d
commit 3aeeea05f7
1 changed files with 12 additions and 9 deletions

View File

@ -2113,17 +2113,20 @@ void InputIpAddressDialog::workerThreadFunc(std::string str_ip, std::string str_
return;
}
if (detectData.bind_state == "occupied") {
post_update_test_msg(wxEmptyString, true);
post_update_test_msg(_L("The printer has already been bound."), false);
return;
if (detectData.connect_type != "farm") {
if (detectData.bind_state == "occupied") {
post_update_test_msg(wxEmptyString, true);
post_update_test_msg(_L("The printer has already been bound."), false);
return;
}
if (detectData.connect_type == "cloud") {
post_update_test_msg(wxEmptyString, true);
post_update_test_msg(_L("The printer mode is incorrect, please switch to LAN Only."), false);
return;
}
}
if (detectData.connect_type == "cloud") {
post_update_test_msg(wxEmptyString, true);
post_update_test_msg(_L("The printer mode is incorrect, please switch to LAN Only."), false);
return;
}
DeviceManager* dev = wxGetApp().getDeviceManager();
m_obj = dev->insert_local_device(detectData.dev_name, detectData.dev_id, str_ip, detectData.connect_type, detectData.bind_state, detectData.version, str_access_code);