|
@ -304,13 +304,11 @@ static void lcd_status_screen() { |
|
|
|
|
|
|
|
|
if (ignore_click) { |
|
|
if (ignore_click) { |
|
|
if (wait_for_unclick) { |
|
|
if (wait_for_unclick) { |
|
|
if (!current_click) { |
|
|
if (!current_click) |
|
|
ignore_click = wait_for_unclick = false; |
|
|
ignore_click = wait_for_unclick = false; |
|
|
} |
|
|
else |
|
|
else { |
|
|
|
|
|
current_click = false; |
|
|
current_click = false; |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
else if (current_click) { |
|
|
else if (current_click) { |
|
|
lcd_quick_feedback(); |
|
|
lcd_quick_feedback(); |
|
|
wait_for_unclick = true; |
|
|
wait_for_unclick = true; |
|
@ -337,15 +335,17 @@ static void lcd_status_screen() { |
|
|
encoderPosition = 0; |
|
|
encoderPosition = 0; |
|
|
feedmultiply = 100; |
|
|
feedmultiply = 100; |
|
|
} |
|
|
} |
|
|
if (feedmultiply == 100 && int(encoderPosition) > ENCODER_FEEDRATE_DEADZONE) { |
|
|
if (feedmultiply == 100) { |
|
|
|
|
|
if (int(encoderPosition) > ENCODER_FEEDRATE_DEADZONE) { |
|
|
feedmultiply += int(encoderPosition) - ENCODER_FEEDRATE_DEADZONE; |
|
|
feedmultiply += int(encoderPosition) - ENCODER_FEEDRATE_DEADZONE; |
|
|
encoderPosition = 0; |
|
|
encoderPosition = 0; |
|
|
} |
|
|
} |
|
|
else if (feedmultiply == 100 && int(encoderPosition) < -ENCODER_FEEDRATE_DEADZONE) { |
|
|
else if (int(encoderPosition) < -ENCODER_FEEDRATE_DEADZONE) { |
|
|
feedmultiply += int(encoderPosition) + ENCODER_FEEDRATE_DEADZONE; |
|
|
feedmultiply += int(encoderPosition) + ENCODER_FEEDRATE_DEADZONE; |
|
|
encoderPosition = 0; |
|
|
encoderPosition = 0; |
|
|
} |
|
|
} |
|
|
else if (feedmultiply != 100) { |
|
|
} |
|
|
|
|
|
else { |
|
|
feedmultiply += int(encoderPosition); |
|
|
feedmultiply += int(encoderPosition); |
|
|
encoderPosition = 0; |
|
|
encoderPosition = 0; |
|
|
} |
|
|
} |
|
|