Browse Source

Make Cancel Objects reporting optional (#21698)

vanilla_fb_2.0.x
Sebastiaan Dammann 4 years ago
committed by Scott Lahteine
parent
commit
c2741affe9
  1. 3
      Marlin/Configuration_adv.h
  2. 2
      Marlin/src/feature/cancel_object.cpp

3
Marlin/Configuration_adv.h

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

2
Marlin/src/feature/cancel_object.cpp

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

Loading…
Cancel
Save