Browse Source

[2.0.x] Auto-enable DISABLE_REDUCED_ACCURACY_WARNING if HOME_AFTER_DEACTIVATE enabled (#7879)

* Auto-enable DISABLE_REDUCED_ACCURACY_WARNING if HOME_AFTER_DEACTIVATE enabled

If HOME_AFTER_DEACTIVATE, there is no need to warn on LCD since printer will home prior to starting print.  Saves 60 bytes PROGMEM on AVR with U8g panel.

* Reduce lines used

* Reduce lines used
pull/1/head
Dave Johnson 7 years ago
committed by Scott Lahteine
parent
commit
9d0e4ea3d5
  1. 4
      Marlin/src/lcd/ultralcd_impl_DOGM.h
  2. 4
      Marlin/src/lcd/ultralcd_impl_HD44780.h

4
Marlin/src/lcd/ultralcd_impl_DOGM.h

@ -430,12 +430,12 @@ FORCE_INLINE void _draw_axis_label(const AxisEnum axis, const char* const pstr,
if (!axis_homed[axis])
u8g.print('?');
else {
#if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING)
#if DISABLED(HOME_AFTER_DEACTIVATE) && DISABLED(DISABLE_REDUCED_ACCURACY_WARNING)
if (!axis_known_position[axis])
u8g.print(' ');
else
#endif
lcd_printPGM(pstr);
lcd_printPGM(pstr);
}
}
}

4
Marlin/src/lcd/ultralcd_impl_HD44780.h

@ -600,12 +600,12 @@ FORCE_INLINE void _draw_axis_label(const AxisEnum axis, const char* const pstr,
if (!axis_homed[axis])
lcd.write('?');
else {
#if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING)
#if DISABLED(HOME_AFTER_DEACTIVATE) && DISABLED(DISABLE_REDUCED_ACCURACY_WARNING)
if (!axis_known_position[axis])
lcd.write(' ');
else
#endif
lcd_printPGM(pstr);
lcd_printPGM(pstr);
}
}
}

Loading…
Cancel
Save