dcs-bios / dcs-bios-arduino-library

Arduino Library to talk to DCS-BIOS
MIT License
61 stars 29 forks source link

Remove callbacks from ExportStreamListeners #4

Closed Gadroc closed 7 years ago

Gadroc commented 9 years ago

Currently some of the listeners have callbacks. These callbacks are called during protocol parsing which is extremely timing sensitive at higher bus speeds. We should move these out and any code that was executed there should be triggered at end of frame.

danvac commented 9 years ago

Is there any guideline how to work with StringBuffers after this change?

jboecker commented 9 years ago

I recommend using the release versions. I have not tested the code in the current master branch much, most of my development time has been spent on implementing RS-485 support. When I get that done, I will integrate it and release a new, tested version.

jboecker commented 7 years ago

Current versions only copy the data to another buffer during parsing, callbacks are called from DcsBios::loop().