bromagosa / Snap4Arduino

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

Firmata communication paused when Snap4Arduino's window is minimized #227

Closed jpliew closed 6 years ago

jpliew commented 6 years ago

When running a simple blink

image

I can see that the communication is working TX and RX LEDs blinking and LED on D13 also blinking. As soon as the main window of Snap4Arduino is minimized, the communication paused (NOT terminated), and LED stopped blinking. When window size is un-minimized, communication start again and work as normal.

Windows 8.1 Snap4Arduino 1.2.4

Anyone has this issue?

Cheers

jguille2 commented 6 years ago

Hi @jpliew ,

Yes, and this is not a Windows issue, nor an Snap4Arduino issue... I'm testing and Snap! itself has this behavior: it pauses execution when it is minimized.

I had not noticed this. I want to think better to see if that makes sense or it needs to be amended. I close this ticket and I open another one in Snap!

Thanks for your contributions!

Joan

jguille2 commented 6 years ago

Hi @jpliew!

Only note that this will be fixed in the next version (1.2.5, next Friday) Thanks Bernat!

As we commented in the Snap! issue, --disable-raf-throttling flag is implemented. This background execution is certainly better ... and we already have it in our desktop version.