Revert "ENH:direct connected devices support fram mode"

This reverts commit dc032e6b719d5d3526f9e757dde884e32583be46.

Reason for revert: <just reverts>

Change-Id: I7e9050cd48d59270fb23b6430990a2c88f3fabab
(cherry picked from commit be08d1d793acf104e1d541c2bd2a49f868ed6189)
This commit is contained in:
洋葱
2025-03-27 15:28:13 +08:00
committed by Noisyfox
parent 7b609448c0
commit 220d2fd574

View File

@@ -2138,20 +2138,17 @@ void InputIpAddressDialog::workerThreadFunc(std::string str_ip, std::string str_
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.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;
}
CallAfter([this, detectData, str_ip, str_access_code]() {
DeviceManager* dev = wxGetApp().getDeviceManager();