Good points. I tried adding Serial.flush() but no luck. I will clean up that unused code too. You can probably tell my c++ knowledge is basically nil. I made a more detailed reply to mborgerson above that may give you some more ideas/insights...
Interesting, I had tried something similar in the past with larger writes and just waiting til we get all the bytes, but had some robustness issues. I tried to replicate the functionality you pasted here to fit with my code structure, and when I...
Hi there,
I have a Teensy 4.1 set up as a simple data logger based on mborgerson's excellent "Generic data logger object". On top of this I've added some serial data transfer capabilities so I can just plug in the logger to my computer (Macbook)...