ENH:support u0 firmware homing

jira:[none]

Change-Id: I9533944c343007897d25929739e5eb175bad6689
(cherry picked from commit 533911e2cd46fadc92bd7d908e81ad51ce14944c)
This commit is contained in:
tao wang
2025-01-18 12:43:32 +08:00
committed by Noisyfox
parent 50fe1f7312
commit e8f5b374b2
3 changed files with 3 additions and 1 deletions

View File

@@ -5532,6 +5532,7 @@ void MachineObject::parse_new_info(json print)
is_support_user_preset = get_flag_bits(fun, 11);
is_support_nozzle_blob_detection = get_flag_bits(fun, 13);
is_support_upgrade_kit = get_flag_bits(cfg, 14);
is_support_command_homing = get_flag_bits(fun, 32);
}
/*aux*/

View File

@@ -869,6 +869,7 @@ public:
bool is_support_filament_setting_inprinting{false};
bool is_support_agora{false};
bool is_support_upgrade_kit{false};
bool is_support_command_homing { false };// fun[32]
bool installed_upgrade_kit{false};
int nozzle_max_temperature = -1;

View File

@@ -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() == 7) { obj->command_axis_control("X", 1.0, 1.0f, 3000); }
if (event.GetInt() == 8) {
if (obj->is_enable_np) {
if (obj->is_support_command_homing) {
obj->command_go_home2();
} else {
obj->command_go_home();