Skip to content

Commit 36ec7ab

Browse files
authored
Make Cancel Objects reporting optional (#21698)
1 parent 5301ec6 commit 36ec7ab

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Marlin/Configuration_adv.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3641,6 +3641,9 @@
36413641
* Implement M486 to allow Marlin to skip objects
36423642
*/
36433643
//#define CANCEL_OBJECTS
3644+
#if ENABLED(CANCEL_OBJECTS)
3645+
#define CANCEL_OBJECTS_REPORTING // Emit the current object as a status message
3646+
#endif
36443647

36453648
/**
36463649
* I2C position encoders for closed loop control.

Marlin/src/feature/cancel_object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void CancelObject::set_active_object(const int8_t obj) {
4343
else
4444
skipping = false;
4545

46-
#if HAS_STATUS_MESSAGE
46+
#if BOTH(HAS_STATUS_MESSAGE, CANCEL_OBJECTS_REPORTING)
4747
if (active_object >= 0)
4848
ui.status_printf_P(0, PSTR(S_FMT " %i"), GET_TEXT(MSG_PRINTING_OBJECT), int(active_object));
4949
else

0 commit comments

Comments
 (0)