Bläddra i källkod

🎨 Misc. E3V2 DWIN cleanup

Scott Lahteine 2 år sedan
förälder
incheckning
310ff23676

+ 5
- 5
Marlin/src/lcd/e3v2/creality/dwin.cpp Visa fil

@@ -2728,7 +2728,7 @@ void HMI_Prepare() {
2728 2728
             EncoderRate.enabled = true;
2729 2729
           #else
2730 2730
             // Apply workspace offset, making the current position 0,0,0
2731
-            queue.inject(F("G92 X0 Y0 Z0"));
2731
+            queue.inject(F("G92X0Y0Z0"));
2732 2732
             HMI_AudioFeedback();
2733 2733
           #endif
2734 2734
           break;
@@ -3556,9 +3556,9 @@ void HMI_AdvSet() {
3556 3556
         case ADVSET_CASE_HOMEOFF:
3557 3557
           checkkey = HomeOff;
3558 3558
           select_item.reset();
3559
-          HMI_ValueStruct.Home_OffX_scaled = home_offset[X_AXIS] * 10;
3560
-          HMI_ValueStruct.Home_OffY_scaled = home_offset[Y_AXIS] * 10;
3561
-          HMI_ValueStruct.Home_OffZ_scaled = home_offset[Z_AXIS] * 10;
3559
+          HMI_ValueStruct.Home_OffX_scaled = home_offset.x * 10;
3560
+          HMI_ValueStruct.Home_OffY_scaled = home_offset.y * 10;
3561
+          HMI_ValueStruct.Home_OffZ_scaled = home_offset.z * 10;
3562 3562
           Draw_HomeOff_Menu();
3563 3563
           break;
3564 3564
       #endif
@@ -3806,7 +3806,7 @@ void HMI_Tune() {
3806 3806
             EncoderRate.enabled = true;
3807 3807
           #else
3808 3808
             // Apply workspace offset, making the current position 0,0,0
3809
-            queue.inject(F("G92 X0 Y0 Z0"));
3809
+            queue.inject(F("G92X0Y0Z0"));
3810 3810
             HMI_AudioFeedback();
3811 3811
           #endif
3812 3812
         break;

+ 1
- 1
Marlin/src/lcd/e3v2/jyersui/dwin.cpp Visa fil

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

+ 1
- 1
Marlin/src/lcd/e3v2/proui/dwin.cpp Visa fil

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

Laddar…
Avbryt
Spara