Merge upstream changes from Marlin 2.1.2.2
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
void report_all_axis_pos(const xyze_pos_t &pos, const uint8_t n=LOGICAL_AXES, const uint8_t precision=3) {
|
||||
char str[12];
|
||||
LOOP_L_N(a, n) {
|
||||
for (uint8_t a = 0; a < n; ++a) {
|
||||
SERIAL_ECHOPGM_P((PGM_P)pgm_read_ptr(&SP_AXIS_LBL[a]));
|
||||
if (pos[a] >= 0) SERIAL_CHAR(' ');
|
||||
SERIAL_ECHO(dtostrf(pos[a], 1, precision, str));
|
||||
@@ -128,9 +128,7 @@ void GcodeSuite::M114() {
|
||||
|
||||
#if ENABLED(M114_DETAIL)
|
||||
if (parser.seen_test('D')) {
|
||||
#if DISABLED(M114_LEGACY)
|
||||
planner.synchronize();
|
||||
#endif
|
||||
IF_DISABLED(M114_LEGACY, planner.synchronize());
|
||||
report_current_position();
|
||||
report_current_position_detail();
|
||||
return;
|
||||
@@ -143,9 +141,7 @@ void GcodeSuite::M114() {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ENABLED(M114_REALTIME)
|
||||
if (parser.seen_test('R')) { report_real_position(); return; }
|
||||
#endif
|
||||
TERN_(M114_REALTIME, if (parser.seen_test('R')) return report_real_position());
|
||||
|
||||
TERN_(M114_LEGACY, planner.synchronize());
|
||||
report_current_position_projected();
|
||||
|
Reference in New Issue
Block a user