File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 3733
3733
* Auto-report position with M154 S<seconds>
3734
3734
*/
3735
3735
//#define AUTO_REPORT_POSITION
3736
+ #if ENABLED (AUTO_REPORT_POSITION )
3737
+ //#define AUTO_REPORT_REAL_POSITION // Auto-report the real position
3738
+ #endif
3736
3739
3737
3740
/**
3738
3741
* Include capabilities in M115 output
Original file line number Diff line number Diff line change @@ -259,7 +259,9 @@ void report_current_position_projected();
259
259
260
260
#if ENABLED(AUTO_REPORT_POSITION)
261
261
#include " ../libs/autoreport.h"
262
- struct PositionReport { static void report () { report_current_position_projected (); } };
262
+ struct PositionReport { static void report () {
263
+ TERN (AUTO_REPORT_REAL_POSITION, report_real_position (), report_current_position_projected ());
264
+ } };
263
265
extern AutoReporter<PositionReport> position_auto_reporter;
264
266
#endif
265
267
You can’t perform that action at this time.
0 commit comments