Open-Bionics / Beetroot

BETA - Release of the Open Bionics Brunel robotic hand control firmware for the Chestnut board
42 stars 28 forks source link

Fixed SerialUSB transmissions not going through #9

Open prnthp opened 6 years ago

prnthp commented 6 years ago

Please correct if I'm wrong, but it seems like using SerialUSB.print() and then SerialUSB.write('\n') sends two successive DTRs and thus the receiving end ends up not getting anything i.e. it gets a string with no termination and thus drops it, then it gets a blank string with just the termination. This behavior happens with .NET's SerialPort.

Also, apologies for messing up the encoding.