Hi
I think the arduino function "Serial.readBytesUntil()" don't run as expected. Normally, this function return the number of bytes received if the end value (define as parameter) is found, and if not (timeOut is actived) then return 0. Actually your conversion between Arduino 1.6.11 and Teensyduino 1.30, always return the number of bytes, and never 0 if timeout.
Regards
Eric
I think the arduino function "Serial.readBytesUntil()" don't run as expected. Normally, this function return the number of bytes received if the end value (define as parameter) is found, and if not (timeOut is actived) then return 0. Actually your conversion between Arduino 1.6.11 and Teensyduino 1.30, always return the number of bytes, and never 0 if timeout.
Regards
Eric