Quellcode durchsuchen

Revert M290 report style (#18202)

mikekscholz vor 4 Jahren
Ursprung
Commit
859b047a23
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 2 neuen und 6 gelöschten Zeilen
  1. 2
    6
      Marlin/src/gcode/motion/M290.cpp

+ 2
- 6
Marlin/src/gcode/motion/M290.cpp Datei anzeigen

@@ -41,14 +41,10 @@
41 41
 #if ENABLED(BABYSTEP_ZPROBE_OFFSET)
42 42
 
43 43
   FORCE_INLINE void mod_probe_offset(const float &offs) {
44
-    if (true
45
-      #if ENABLED(BABYSTEP_HOTEND_Z_OFFSET)
46
-        && active_extruder == 0
47
-      #endif
48
-    ) {
44
+    if (TERN1(BABYSTEP_HOTEND_Z_OFFSET, active_extruder == 0)) {
49 45
       probe.offset.z += offs;
50 46
       SERIAL_ECHO_START();
51
-      SERIAL_ECHOLNPAIR(STR_PROBE_OFFSET STR_Z ": ", probe.offset.z);
47
+      SERIAL_ECHOLNPAIR(STR_PROBE_OFFSET " " STR_Z, probe.offset.z);
52 48
     }
53 49
     else {
54 50
       #if ENABLED(BABYSTEP_HOTEND_Z_OFFSET)

Laden…
Abbrechen
Speichern