mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
ENH: add hint dialogs for firmware upgrade
Change-Id: Iff34e4543d50074db05280fec8178029c4531e00 (cherry picked from commit 6f98eda25c722ecb6e0b6f4926972031c00bc366)
This commit is contained in:
parent
37d6efdbef
commit
83a9c259f7
7 changed files with 308 additions and 12 deletions
|
@ -1162,7 +1162,7 @@ int MachineObject::command_request_push_all()
|
|||
|
||||
int MachineObject::command_upgrade_confirm()
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(trace) << "command_upgrade_confirm";
|
||||
BOOST_LOG_TRIVIAL(info) << "command_upgrade_confirm";
|
||||
json j;
|
||||
j["upgrade"]["command"] = "upgrade_confirm";
|
||||
j["upgrade"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
|
||||
|
@ -1170,6 +1170,16 @@ int MachineObject::command_upgrade_confirm()
|
|||
return this->publish_json(j.dump());
|
||||
}
|
||||
|
||||
int MachineObject::command_consistency_upgrade_confirm()
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(info) << "command_consistency_upgrade_confirm";
|
||||
json j;
|
||||
j["upgrade"]["command"] = "consistency_confirm";
|
||||
j["upgrade"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
|
||||
j["upgrade"]["src_id"] = 1; // 1 for slicer
|
||||
return this->publish_json(j.dump());
|
||||
}
|
||||
|
||||
int MachineObject::command_upgrade_firmware(FirmwareInfo info)
|
||||
{
|
||||
std::string version = info.version;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue