PDA

View Full Version : Teensy 3 bug on 1.14rc2



adrianfreed
05-24-2013, 07:58 AM
I have't gotten to the bottom of it but our OSC l library SLIP serial test sketch fails now on Teensy 3.0

Our code has no specific Teensy 3.0 dependencies and works on Teensy 2.0 and all the other Arduinos I have tested.
We make heavy use of malloc, realloc and also serial USB I/O, of course.

I am backpedaling as fast as possible to see if it is something we did in our code, something Arduino 1.05 introduced or the problem
crept in with 1.14rc1 or 1.14rc2

I will update as soon as I can with a small example and more details, but I wanted to give you a heads up and prompt
others to test the release candidate...

adrianfreed
05-24-2013, 08:46 AM
I found it: a subtle bug in our SLIP state machine that was made visible probably with the enhanced performance of
USB serial on 1.14rc2.

The bug involved doing a peek() without checking for available()>0. I wonder if the semantics of that changed with rc2.