Don't block OnMMUProgressMsg while waiting for fsensor to trigger

This commit is contained in:
Guðni Már Gilbert 2022-05-21 14:30:11 +00:00 committed by D.R.racer
parent 0aa3a5855e
commit e817a2d321
1 changed files with 5 additions and 3 deletions

View File

@ -677,9 +677,11 @@ void MMU2::OnMMUProgressMsg(ProgressCode pc){
break;
case FilamentState::NOT_PRESENT:
// fsensor not triggered, continue moving extruder
current_position[E_AXIS] += 5.0f;
plan_buffer_line_curposXYZE(MMU2_LOAD_TO_NOZZLE_FEED_RATE);
st_synchronize(); // Wait for the steps to be done so the moves don't pile up
if(!blocks_queued())
{ // Only plan a move if there is no move ongoing
current_position[E_AXIS] += 5.0f;
plan_buffer_line_curposXYZE(MMU2_LOAD_TO_NOZZLE_FEED_RATE);
}
break;
default:
// Abort here?