Serial is designed so you can call begin() and end() as often as you please in any place.
So begin should
- test if a buffer exists,
- free it and
- malloc a new one.
end should
- test if a buffer exists,
- free it
Serial is designed so you can call begin() and end() as often as you please in any place.
So begin should
end should