🎨 Misc. E3V2 DWIN cleanup

This commit is contained in:
Scott Lahteine
2022-05-17 15:05:25 -05:00
parent 7894cd9d6a
commit 310ff23676
3 changed files with 7 additions and 7 deletions

View File

@@ -2728,7 +2728,7 @@ void HMI_Prepare() {
EncoderRate.enabled = true; EncoderRate.enabled = true;
#else #else
// Apply workspace offset, making the current position 0,0,0 // Apply workspace offset, making the current position 0,0,0
queue.inject(F("G92 X0 Y0 Z0")); queue.inject(F("G92X0Y0Z0"));
HMI_AudioFeedback(); HMI_AudioFeedback();
#endif #endif
break; break;
@@ -3556,9 +3556,9 @@ void HMI_AdvSet() {
case ADVSET_CASE_HOMEOFF: case ADVSET_CASE_HOMEOFF:
checkkey = HomeOff; checkkey = HomeOff;
select_item.reset(); select_item.reset();
HMI_ValueStruct.Home_OffX_scaled = home_offset[X_AXIS] * 10; HMI_ValueStruct.Home_OffX_scaled = home_offset.x * 10;
HMI_ValueStruct.Home_OffY_scaled = home_offset[Y_AXIS] * 10; HMI_ValueStruct.Home_OffY_scaled = home_offset.y * 10;
HMI_ValueStruct.Home_OffZ_scaled = home_offset[Z_AXIS] * 10; HMI_ValueStruct.Home_OffZ_scaled = home_offset.z * 10;
Draw_HomeOff_Menu(); Draw_HomeOff_Menu();
break; break;
#endif #endif
@@ -3806,7 +3806,7 @@ void HMI_Tune() {
EncoderRate.enabled = true; EncoderRate.enabled = true;
#else #else
// Apply workspace offset, making the current position 0,0,0 // Apply workspace offset, making the current position 0,0,0
queue.inject(F("G92 X0 Y0 Z0")); queue.inject(F("G92X0Y0Z0"));
HMI_AudioFeedback(); HMI_AudioFeedback();
#endif #endif
break; break;

View File

@@ -1246,7 +1246,7 @@ void CrealityDWINClass::Menu_Item_Handler(uint8_t menu, uint8_t item, bool draw/
if (draw) if (draw)
Draw_Menu_Item(row, ICON_SetHome, F("Set Home Position")); Draw_Menu_Item(row, ICON_SetHome, F("Set Home Position"));
else { else {
gcode.process_subcommands_now(F("G92 X0 Y0 Z0")); gcode.process_subcommands_now(F("G92X0Y0Z0"));
AudioFeedback(); AudioFeedback();
} }
break; break;

View File

@@ -1943,7 +1943,7 @@ void HomeZ() { queue.inject(F("G28Z")); }
void SetHome() { void SetHome() {
// Apply workspace offset, making the current position 0,0,0 // Apply workspace offset, making the current position 0,0,0
queue.inject(F("G92 X0 Y0 Z0")); queue.inject(F("G92X0Y0Z0"));
HMI_AudioFeedback(); HMI_AudioFeedback();
} }