No lcd_map_control needed in quick_stop

This commit is contained in:
Scott Lahteine 2017-12-06 16:19:11 -06:00
parent 3b30cc90f1
commit 574153a810
3 changed files with 20 additions and 16 deletions

View file

@ -1224,12 +1224,7 @@ void Stepper::finish_and_disable() {
}
void Stepper::quick_stop() {
#if ENABLED(AUTO_BED_LEVELING_UBL) && ENABLED(ULTIPANEL)
if (!ubl.lcd_map_control)
cleaning_buffer_counter = 5000;
#else
cleaning_buffer_counter = 5000;
#endif
cleaning_buffer_counter = 5000;
DISABLE_STEPPER_DRIVER_INTERRUPT();
while (planner.blocks_queued()) planner.discard_current_block();
current_block = NULL;