Program stack when trying to open serial port

auto formatting the code, Always post all the code as a single block

On the IDE menu under tools is an auto formatting program. Always use it before posting.

Mark