FIX:update load/unload command for n3s

Change-Id: Ic4655f368a0ffb0e16139dee1fd1ffc34236e9eb
(cherry picked from commit fc32042639cc83cc6876e63b86c944671649955c)
This commit is contained in:
tao wang 2025-03-04 12:08:54 +08:00 committed by Noisyfox
parent 3a67f1bd27
commit ec2ee96ef5
2 changed files with 0 additions and 14 deletions

View file

@ -2086,19 +2086,6 @@ int MachineObject::command_ams_change_filament(bool load, std::string ams_id, st
return this->publish_json(j.dump());
}
int MachineObject::command_ams_change_filament2(int ams_id, int slot_id, int old_temp, int new_temp)
{
json j;
j["print"]["command"] = "ams_change_filament";
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
j["print"]["target"] = ams_id == VIRTUAL_TRAY_MAIN_ID?VIRTUAL_TRAY_DEPUTY_ID:slot_id;
j["print"]["curr_temp"] = old_temp;
j["print"]["tar_temp"] = new_temp;
j["print"]["ams_id"] = ams_id;
j["print"]["slot_id"] = slot_id;
return this->publish_json(j.dump());
}
int MachineObject::command_ams_user_settings(int ams_id, bool start_read_opt, bool tray_read_opt, bool remain_flag)
{
json j;

View file

@ -1124,7 +1124,6 @@ public:
// ams controls
//int command_ams_switch(int tray_index, int old_temp = 210, int new_temp = 210);
int command_ams_change_filament(bool load, std::string ams_id, std::string slot_id, int old_temp = 210, int new_temp = 210);
int command_ams_change_filament2(int ams_id, int slot_id, int old_temp = 210, int new_temp = 210);
int command_ams_user_settings(int ams_id, bool start_read_opt, bool tray_read_opt, bool remain_flag = false);
int command_ams_switch_filament(bool switch_filament);
int command_ams_air_print_detect(bool air_print_detect);