File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 37273727 * Auto-report position with M154 S<seconds>
37283728 */
37293729//#define AUTO_REPORT_POSITION
3730+ #if ENABLED (AUTO_REPORT_POSITION )
3731+ //#define AUTO_REPORT_REAL_POSITION // Auto-report the real position
3732+ #endif
37303733
37313734/**
37323735 * Include capabilities in M115 output
Original file line number Diff line number Diff line change @@ -259,7 +259,9 @@ void report_current_position_projected();
259259
260260#if ENABLED(AUTO_REPORT_POSITION)
261261 #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+ } };
263265 extern AutoReporter<PositionReport> position_auto_reporter;
264266#endif
265267
You can’t perform that action at this time.
0 commit comments