No lcd_map_control flag in quick_stop

This commit is contained in:
Scott Lahteine
2017-12-06 21:28:50 -06:00
parent 840289e7cc
commit 9898b96992
3 changed files with 22 additions and 17 deletions

View File

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

View File

@@ -77,10 +77,11 @@ class Stepper {
static uint32_t motor_current_setting[3];
#endif
static int16_t cleaning_buffer_counter;
private:
static uint8_t last_direction_bits; // The next stepping-bits to be output
static int16_t cleaning_buffer_counter;
#if ENABLED(X_DUAL_ENDSTOPS)
static bool locked_x_motor, locked_x2_motor;