Quote Originally Posted by tumbleweed View Post
That may not help. What would happen if you get a USB request while you're in the middle of getting the UART packet?
The UART packet gets corrupted; the checksum and/or byte count are declared bad; and the packet gets tossed away (there'll be another along in a few seconds). I'm collecting environmental data, so the occasional lost packet is no big deal. Missing readings are fine -Bad data is not!
I have figured out a way to capture an error happening today. Which means I now have a way to chase it, instead of staring at the screen waiting for that one time per hour or so when things go badly.