Get firmware loading working with libpebble
Flush input/output buffer before performing any work with the spp serial port