sarahghp / p5bots

Use your microcontroller with p5.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

in rare cases, serial initial reads/writes may be lost

daverusso opened this issue · comments

In rare cases serial reads/writes may be lost at startup due to typo bug: in serial.js serialDispatch() the line:

serialport.isOpen ?

should be

serialport.isOpen() ?

Since isOpen is a function, the test is always true, even if the serial port isn't really open. As a result, serialDispatch() never queues reads/writes