mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-27 01:58:36 -07:00
FIX: upgrade is not available in LAN mode
jira: [STUDIO-9691] Change-Id: I22c2403c62d889194cc1d738576f92e90762463c (cherry picked from commit e55b2159c5df43f16af9d8d6719277707f996bf2)
This commit is contained in:
parent
cf90949a34
commit
cd1c06de26
1 changed files with 8 additions and 0 deletions
|
|
@ -3906,9 +3906,17 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
|
|||
});
|
||||
}
|
||||
if (upgrade_display_hold_count > 0)
|
||||
{
|
||||
upgrade_display_hold_count--;
|
||||
}
|
||||
else
|
||||
{
|
||||
upgrade_display_state = jj["upgrade_state"]["dis_state"].get<int>();
|
||||
if ((upgrade_display_state == 1) && is_lan_mode_printer())
|
||||
{
|
||||
upgrade_display_state = (int) UpgradingDisplayState::UpgradingUnavaliable;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (upgrade_display_hold_count > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue