@jbjhjm said in M703 - error if no filament is selected?:
if move.extruders[state.currentTool].filament == ""
abort "Error: No filament selected"
if move.extruders[state.currentTool].filament == null
abort "Error: No filament selected"
I have not encountered a situation where the null check was needed - perhaps it can be null but I don't know when.
I have no test for a tool being selected as that is done just after the checks. I have no multi-tool printers.
T0
M703
Frederick