Browse Source

🎨 Misc. E3V2 DWIN cleanup

Scott Lahteine 2 years ago
parent
commit
310ff23676

+ 5
- 5
Marlin/src/lcd/e3v2/creality/dwin.cpp View File

2728
             EncoderRate.enabled = true;
2728
             EncoderRate.enabled = true;
2729
           #else
2729
           #else
2730
             // Apply workspace offset, making the current position 0,0,0
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
             HMI_AudioFeedback();
2732
             HMI_AudioFeedback();
2733
           #endif
2733
           #endif
2734
           break;
2734
           break;
3556
         case ADVSET_CASE_HOMEOFF:
3556
         case ADVSET_CASE_HOMEOFF:
3557
           checkkey = HomeOff;
3557
           checkkey = HomeOff;
3558
           select_item.reset();
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
           Draw_HomeOff_Menu();
3562
           Draw_HomeOff_Menu();
3563
           break;
3563
           break;
3564
       #endif
3564
       #endif
3806
             EncoderRate.enabled = true;
3806
             EncoderRate.enabled = true;
3807
           #else
3807
           #else
3808
             // Apply workspace offset, making the current position 0,0,0
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
             HMI_AudioFeedback();
3810
             HMI_AudioFeedback();
3811
           #endif
3811
           #endif
3812
         break;
3812
         break;

+ 1
- 1
Marlin/src/lcd/e3v2/jyersui/dwin.cpp View File

1246
           if (draw)
1246
           if (draw)
1247
             Draw_Menu_Item(row, ICON_SetHome, F("Set Home Position"));
1247
             Draw_Menu_Item(row, ICON_SetHome, F("Set Home Position"));
1248
           else {
1248
           else {
1249
-            gcode.process_subcommands_now(F("G92 X0 Y0 Z0"));
1249
+            gcode.process_subcommands_now(F("G92X0Y0Z0"));
1250
             AudioFeedback();
1250
             AudioFeedback();
1251
           }
1251
           }
1252
           break;
1252
           break;

+ 1
- 1
Marlin/src/lcd/e3v2/proui/dwin.cpp View File

1943
 
1943
 
1944
 void SetHome() {
1944
 void SetHome() {
1945
   // Apply workspace offset, making the current position 0,0,0
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
   HMI_AudioFeedback();
1947
   HMI_AudioFeedback();
1948
 }
1948
 }
1949
 
1949
 

Loading…
Cancel
Save