fixed bridge detection issues on some systems

some Arduino core libraries do not seem to handle "flush" reliably, leading to lost characters