itsanjan / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

serialEvent() should be called synchronously not from an interrupt. #584

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The serialEvent() function should be called from the main for() loop, outside 
the call to loop() - not from the serial receive interrupt handler.  This will 
make it easier for people to write working code.

Original issue reported on code.google.com by dmel...@gmail.com on 17 Aug 2011 at 5:18

GoogleCodeExporter commented 9 years ago
This patch makes serialEvent() called from main, between each run of loop.  It 
also updates the example documentation.

Original comment by paul.sto...@gmail.com on 30 Aug 2011 at 2:52

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the patch!

https://github.com/arduino/Arduino/commit/1278144d5039be02e3ab78264c8c8da2df5532
c0

Original comment by dmel...@gmail.com on 31 Aug 2011 at 7:54