Fix for issue #165

Proposed by jcRBern

Example available at http://github.com/energia/Energia/tree/issue_165/examples/4.Communication/Serial_StellarPad

Please test this update so the pull request can be validated.