Worked round bug in Pronterface (which seems to send gratuitous M0 or M1 commands during a print).  Disabled M0 command :-(