Ok, just fixed. If you pull the latest from http://www.espruino.com/binaries/travis/master it should be sorted!
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.
© Espruino, powered by microcosm.
Report a problem