You are reading a single comment by @fanoush and its replies.
Click here to read the full conversation.
-
It doesn't matter much for 1 byte transfers but in theory the test could be if (count==1 && rx) because it is rx dma what triggers the bug, sending one byte without receiving anything (i.e RXD.MAXCNT==0) works fine. not sure what is actually faster or make more sense - using dma for sending just 1 byte or disabling it, sending and enabling back.
Ok, just fixed. If you pull the latest from http://www.espruino.com/binaries/travis/master it should be sorted!