Skip to content
Snippets Groups Projects
Commit b8d030ae authored by Mikhail Nozdrin's avatar Mikhail Nozdrin
Browse files

Data error 5 fixed

  Sometimes controller was replying with the Data Error 5 message.
  Logic analyzer studies have shown that this occues when some
delay between the control message bytes appears.
  The only reason (except internal hardware problems) was tcdrain()
before each control message byte sending. In this commit tcdrain()
(which waits until the transmit buffer is empty) is placed only
before the first control message byte. And it seems that no more
Data Error 5 is seen.
parent 0eefb7e6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment