mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
ENH:support u0 firmware homing
jira:[none] Change-Id: I9533944c343007897d25929739e5eb175bad6689 (cherry picked from commit 533911e2cd46fadc92bd7d908e81ad51ce14944c)
This commit is contained in:
@@ -5532,6 +5532,7 @@ void MachineObject::parse_new_info(json print)
|
|||||||
is_support_user_preset = get_flag_bits(fun, 11);
|
is_support_user_preset = get_flag_bits(fun, 11);
|
||||||
is_support_nozzle_blob_detection = get_flag_bits(fun, 13);
|
is_support_nozzle_blob_detection = get_flag_bits(fun, 13);
|
||||||
is_support_upgrade_kit = get_flag_bits(cfg, 14);
|
is_support_upgrade_kit = get_flag_bits(cfg, 14);
|
||||||
|
is_support_command_homing = get_flag_bits(fun, 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*aux*/
|
/*aux*/
|
||||||
|
|||||||
@@ -869,6 +869,7 @@ public:
|
|||||||
bool is_support_filament_setting_inprinting{false};
|
bool is_support_filament_setting_inprinting{false};
|
||||||
bool is_support_agora{false};
|
bool is_support_agora{false};
|
||||||
bool is_support_upgrade_kit{false};
|
bool is_support_upgrade_kit{false};
|
||||||
|
bool is_support_command_homing { false };// fun[32]
|
||||||
|
|
||||||
bool installed_upgrade_kit{false};
|
bool installed_upgrade_kit{false};
|
||||||
int nozzle_max_temperature = -1;
|
int nozzle_max_temperature = -1;
|
||||||
|
|||||||
@@ -3315,7 +3315,7 @@ void StatusPanel::on_axis_ctrl_xy(wxCommandEvent &event)
|
|||||||
if (event.GetInt() == 6) { obj->command_axis_control("Y", 1.0, -1.0f, 3000); }
|
if (event.GetInt() == 6) { obj->command_axis_control("Y", 1.0, -1.0f, 3000); }
|
||||||
if (event.GetInt() == 7) { obj->command_axis_control("X", 1.0, 1.0f, 3000); }
|
if (event.GetInt() == 7) { obj->command_axis_control("X", 1.0, 1.0f, 3000); }
|
||||||
if (event.GetInt() == 8) {
|
if (event.GetInt() == 8) {
|
||||||
if (obj->is_enable_np) {
|
if (obj->is_support_command_homing) {
|
||||||
obj->command_go_home2();
|
obj->command_go_home2();
|
||||||
} else {
|
} else {
|
||||||
obj->command_go_home();
|
obj->command_go_home();
|
||||||
|
|||||||
Reference in New Issue
Block a user