Don't block OnMMUProgressMsg while waiting for fsensor to trigger
This commit is contained in:
parent
0aa3a5855e
commit
e817a2d321
|
|
@ -677,9 +677,11 @@ void MMU2::OnMMUProgressMsg(ProgressCode pc){
|
||||||
break;
|
break;
|
||||||
case FilamentState::NOT_PRESENT:
|
case FilamentState::NOT_PRESENT:
|
||||||
// fsensor not triggered, continue moving extruder
|
// fsensor not triggered, continue moving extruder
|
||||||
current_position[E_AXIS] += 5.0f;
|
if(!blocks_queued())
|
||||||
plan_buffer_line_curposXYZE(MMU2_LOAD_TO_NOZZLE_FEED_RATE);
|
{ // Only plan a move if there is no move ongoing
|
||||||
st_synchronize(); // Wait for the steps to be done so the moves don't pile up
|
current_position[E_AXIS] += 5.0f;
|
||||||
|
plan_buffer_line_curposXYZE(MMU2_LOAD_TO_NOZZLE_FEED_RATE);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Abort here?
|
// Abort here?
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue