Filament runout

I have a large print which ran out of filament in the middle of the night, Ireloaded filament and pressed the resume button. It immediately came back saying home axis first and cleared screen like it had failed. I couldn’t rehome anyway because print was in the way, it still has cordinates in it where it stopped, so is there a way to restart? What should I have done? Other than standing there and watching how do I keep this from happening?

Add to filament_switch_sensor section:

pause_on_runout: False
runout_gcode:
    PAUSE

Documentation is wrong. Pause_on_runout don’t call PAUSE. It directly call default pause function. Then you call overriden resume and mess gcode state.

You are awsome

Thanks

So im guessing there is no recovery on present print, which is ok if i5 is.