ted-hou / mouse-behavior-arduino

You know what else is cool? Horses.
0 stars 0 forks source link

BytesAvailableFcn is being disabled #18

Closed ted-hou closed 8 years ago

ted-hou commented 8 years ago

This seems to occur if serial messages are sent while MATLAB is busy/experiencing micro-freezes.

ted-hou commented 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.

ahamilos commented 8 years ago

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