Browse Source

Make Cancel Objects reporting optional (#21698)

Sebastiaan Dammann 3 years ago
parent
commit
36ec7ab150
No account linked to committer's email address
2 changed files with 4 additions and 1 deletions
  1. 3
    0
      Marlin/Configuration_adv.h
  2. 1
    1
      Marlin/src/feature/cancel_object.cpp

+ 3
- 0
Marlin/Configuration_adv.h View File

@@ -3641,6 +3641,9 @@
3641 3641
  * Implement M486 to allow Marlin to skip objects
3642 3642
  */
3643 3643
 //#define CANCEL_OBJECTS
3644
+#if ENABLED(CANCEL_OBJECTS)
3645
+  #define CANCEL_OBJECTS_REPORTING // Emit the current object as a status message
3646
+#endif
3644 3647
 
3645 3648
 /**
3646 3649
  * I2C position encoders for closed loop control.

+ 1
- 1
Marlin/src/feature/cancel_object.cpp View File

@@ -43,7 +43,7 @@ void CancelObject::set_active_object(const int8_t obj) {
43 43
   else
44 44
     skipping = false;
45 45
 
46
-  #if HAS_STATUS_MESSAGE
46
+  #if BOTH(HAS_STATUS_MESSAGE, CANCEL_OBJECTS_REPORTING)
47 47
     if (active_object >= 0)
48 48
       ui.status_printf_P(0, PSTR(S_FMT " %i"), GET_TEXT(MSG_PRINTING_OBJECT), int(active_object));
49 49
     else

Loading…
Cancel
Save