File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 37333733 * Auto-report position with M154 S<seconds>
37343734 */
37353735//#define AUTO_REPORT_POSITION
3736+ #if ENABLED (AUTO_REPORT_POSITION )
3737+ //#define AUTO_REPORT_REAL_POSITION // Auto-report the real position
3738+ #endif
37363739
37373740/**
37383741 * 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