bromagosa / Snap4Arduino

Binding Snap! and Arduino together
http://snap4arduino.rocks
GNU Affero General Public License v3.0
133 stars 85 forks source link

Fixing bug in first readings #169

Closed jguille2 closed 7 years ago

jguille2 commented 7 years ago

Hi, We had problems with the first readings because the asynchronous procedures. This PR fix these first digital readings, and also is applied to analogical readings (already fixed with an 'ugly' hack in the past)

I know this fix must be also applied to the "others threads.js" (android, cli...) but I pull it to test and confirm the solution.

bromagosa commented 7 years ago

Thank you, good one! :)