lmahdi / as3-arduino-connector

Automatically exported from code.google.com/p/as3-arduino-connector
0 stars 0 forks source link

int sentEvent should be volatile #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run extensive communication

What is the expected output? What do you see instead?
onData events should not be lost.

What version of the product are you using? On what operating system?
1.5.0

Please provide any additional information below.

sentEvent variable should be declared:

volatile int sentEvent;

It should be accessed inside mutex everywhere.

Original issue reported on code.google.com by romanlut...@gmail.com on 11 Apr 2015 at 12:51

GoogleCodeExporter commented 8 years ago
> sentEvent variable should be declared: volatile uint8_t sentEvent;
OR 
>It should be accessed inside mutex everywhere.

Original comment by romanlut...@gmail.com on 11 Apr 2015 at 9:45

GoogleCodeExporter commented 8 years ago
This project has been moved to GitHub by Google Code.  
https://github.com/quetwo/as3-arduino-connector  Would you mind submitting a 
pull request there to correct these issues?  I would love to include them in a 
new release.

Original comment by Nicholas...@gmail.com on 14 Apr 2015 at 10:02