Serial.write stops working if not used?

Duly noted. Rewriting.