Serial.print

How can I ensure that all serial print is complete before returning from a printing subroutine?

Use Serial.flush() as the last statement in the function

How can I ensure that all serial print is complete before returning from a printing subroutine?

Serial.flush

@theoldfossil

TOPIC MERGED.

Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum.