Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ AUTO_REPORT_REAL_POSITION option for M154 (MarlinFirmware#25738)
Browse files Browse the repository at this point in the history
TheSnowfield authored and Tracy Spiva committed May 25, 2023
1 parent 421d0d4 commit e13d4fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Marlin/src/module/motion.h
Original file line number Diff line number Diff line change
@@ -259,7 +259,9 @@ void report_current_position_projected();

#if ENABLED(AUTO_REPORT_POSITION)
#include "../libs/autoreport.h"
struct PositionReport { static void report() { report_current_position_projected(); } };
struct PositionReport { static void report() {
TERN(AUTO_REPORT_REAL_POSITION, report_real_position(), report_current_position_projected());
} };
extern AutoReporter<PositionReport> position_auto_reporter;
#endif

0 comments on commit e13d4fd

Please sign in to comment.