Bug in chprintf.c (Chibios 2.6.3)
Posted: Fri Feb 28, 2014 1:24 pm
Hello, I think I've found a bug in chvprintf, specifically in the line:
The issue is that chSequentialStreamWrite calls chOQWriteTimeout, which doesn't accept a length of 0 (reserved, although I don't know why...), so I get a "chOQWriteTimeout" debug panic.
Maybe a quick fix could be:
Thanks!!
Diego.
Code: Select all
chSequentialStreamWrite(chp, (uint8_t*)s, i);
The issue is that chSequentialStreamWrite calls chOQWriteTimeout, which doesn't accept a length of 0 (reserved, although I don't know why...), so I get a "chOQWriteTimeout" debug panic.
Maybe a quick fix could be:
Code: Select all
if (i > 0)
chSequentialStreamWrite(chp, (uint8_t*)s, i);
Thanks!!
Diego.