cren - thanks for the explanation. I think I understand now !-)
A Possible Bug in SerialUSB.read() function
(19 posts) (5 voices)-
Posted 4 years ago #
-
crenn,
The problem still exists in PuTTY, it's just masked. Because for PuTTY, as you type, it sends the characters as you type them. So it's only collecting a single character. However, if you paste text into the PuTTY window, it sends this text in very quick succession so that the code sees multiple bytes are available, which triggers the bug.
that is a convincing explanation. consider the bug reopened.
Posted 4 years ago # -
Hello-
I am glad the
SerialUSB.read()
bug I found in the current Maple IDE SNAPSHOT was confirmed. I did not realize the bug report had been closed!Is the commit from two days ago the current solution to the problem?
https://github.com/leaflabs/libmaple/commit/3ba7196712a5bfe4fe1166b6c34d49c3d7254568
I do not know which was posted first, mbolivar's comment about the reopening of the bug (in the previous post) or the edited code.
I will not have a chance to test the new
wirish/usb_serial.cpp
file until this weekend, but other users (who are using the current SNAPSHOT) might decide to use code which requiresSerialUSB.read()
if they can get a quick verification that the code seems to work as expected.Are there any dependency issues involved or can I just copy the edited
wirish/usb_serial.cpp
file and use it with the current IDE snapshot?Thanks for the help!
Stephen from NYC
Note: I do not think IDE 0.0.9 has the
SerialUSB.read()
bug, but 0.0.9 still has a bug in SerialUSB.print().Posted 4 years ago # -
That commit was to fix a different problem. Sadly not this one.
Posted 4 years ago #
Reply
You must log in to post.