ENH:support u0 firmware homing

jira:[none]

Change-Id: I9533944c343007897d25929739e5eb175bad6689
This commit is contained in:
tao wang 2025-01-18 12:43:32 +08:00 committed by lane.wei
parent ff02619730
commit 533911e2cd
3 changed files with 3 additions and 1 deletions

View File

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

View File

@ -989,6 +989,7 @@ public:
bool is_support_upgrade_kit{false};
bool is_support_filament_setting_inprinting{false};
bool is_support_internal_timelapse { false };// fun[28], support timelapse without SD card
bool is_support_command_homing { false };// fun[32]
bool installed_upgrade_kit{false};
int bed_temperature_limit = -1;

View File

@ -3664,7 +3664,7 @@ void StatusPanel::on_axis_ctrl_xy(wxCommandEvent &event)
axis_go_home_dlg->Bind(EVT_SECONDARY_CHECK_CONFIRM, [this](wxCommandEvent& e) {
if (obj) {
BOOST_LOG_TRIVIAL(info) << "Axis have go home";
if (obj->is_enable_np) {
if (obj->is_support_command_homing) {
obj->command_go_home2();
} else {
obj->command_go_home();