michaelobed / square-wave-gen

A slightly boring tool to accurately* generate square waves for test purposes.
Apache License 2.0
0 stars 0 forks source link

Newlines are jank. #3

Closed michaelobed closed 11 months ago

michaelobed commented 11 months ago

Because I hacked this thing together so quickly, I forgot that only Unix endings are \n. Because of this, I'm opting to use \r\n for all newlines.

michaelobed commented 11 months ago

I've reached a kind of compromise where I now look just for the \r character at the end of a UART string. I was expecting Windows to always send '\n' (or at least PuTTY), but that doesn't seem to be the case by default, so this'll do for now. Closing.