Closed ted-hou closed 8 years ago
Potential fix implemented in https://github.com/ted-hou/mouse-behavior-arduino/commit/a37a1824e5c1792d8001687ae95a83ba3bfa6a6f
Serial messages will be read line-by-line (fgetl
) instead of char-by-char (fread
in a for
loop). Seemed to fix it on my laptop.
wahow!
On Fri, Oct 7, 2016 at 2:59 PM, ted-hou notifications@github.com wrote:
Potential fix implemented in a37a182 https://github.com/ted-hou/mouse-behavior-arduino/commit/a37a1824e5c1792d8001687ae95a83ba3bfa6a6f
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ted-hou/mouse-behavior-arduino/issues/18#issuecomment-252333980, or mute the thread https://github.com/notifications/unsubscribe-auth/AOOUoYfvD4GZwh_hrg_2M32EWSBJnr35ks5qxpaHgaJpZM4KQBqB .
Allison E. Hamilos
Harvard Graduate Program in Neuroscience Harvard Medical School Harvard-MIT Division of Health Sciences and Technology MD-PhD Candidate
This seems to occur if serial messages are sent while MATLAB is busy/experiencing micro-freezes.
BytesAvailableFcnCount
andInputBufferSize
, didn't work. Does not seem to be related with buffer overflow.