Browse Source

General cleanup

Scott Lahteine 3 years ago
parent
commit
97cb0a8c3e
2 changed files with 3 additions and 2 deletions
  1. 2
    0
      Marlin/src/gcode/control/M997.cpp
  2. 1
    2
      Marlin/src/module/settings.cpp

+ 2
- 0
Marlin/src/gcode/control/M997.cpp View File

@@ -28,7 +28,9 @@
28 28
  * M997: Perform in-application firmware update
29 29
  */
30 30
 void GcodeSuite::M997() {
31
+
31 32
   flashFirmware(parser.intval('S'));
33
+
32 34
 }
33 35
 
34 36
 #endif

+ 1
- 2
Marlin/src/module/settings.cpp View File

@@ -2517,8 +2517,7 @@ void MarlinSettings::reset() {
2517 2517
     #if HAS_PROBE_XY_OFFSET
2518 2518
       LOOP_XYZ(a) probe.offset[a] = dpo[a];
2519 2519
     #else
2520
-      probe.offset.x = probe.offset.y = 0;
2521
-      probe.offset.z = dpo[Z_AXIS];
2520
+      probe.offset.set(0, 0, dpo[Z_AXIS]);
2522 2521
     #endif
2523 2522
   #endif
2524 2523
 

Loading…
Cancel
Save