M154 Position Auto-Report (#18427)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
@ -230,6 +230,11 @@ void report_current_position_projected() {
|
||||
stepper.report_a_position(planner.position);
|
||||
}
|
||||
|
||||
#if ENABLED(AUTO_REPORT_POSITION)
|
||||
//struct PositionReport { void report() { report_current_position_projected(); } };
|
||||
AutoReporter<PositionReport> position_auto_reporter;
|
||||
#endif
|
||||
|
||||
#if EITHER(FULL_REPORT_TO_HOST_FEATURE, REALTIME_REPORTING_COMMANDS)
|
||||
|
||||
M_StateEnum M_State_grbl = M_INIT;
|
||||
|
@ -211,6 +211,12 @@ void report_real_position();
|
||||
void report_current_position();
|
||||
void report_current_position_projected();
|
||||
|
||||
#if ENABLED(AUTO_REPORT_POSITION)
|
||||
#include "../libs/autoreport.h"
|
||||
struct PositionReport { static void report() { report_current_position_projected(); } };
|
||||
extern AutoReporter<PositionReport> position_auto_reporter;
|
||||
#endif
|
||||
|
||||
#if EITHER(FULL_REPORT_TO_HOST_FEATURE, REALTIME_REPORTING_COMMANDS)
|
||||
#define HAS_GRBL_STATE 1
|
||||
/**
|
||||
|
Reference in New Issue
Block a user