linux-automation / lxa-iobus

Linux Automation IOBus server
https://lxa-iobus.readthedocs.io/en/latest/
Apache License 2.0
3 stars 4 forks source link

node: optick: fix capture output with multiple outputs #48

Closed michaelolbrich closed 2 months ago

michaelolbrich commented 2 months ago

The raw events are lists with timestamps and state per input. The output contains the state of all the outputs for each timstamp.

The lists must be merged and sorted before adding adding the state of the other inputs for each timestamp. Otherwise an old state value is used and the output is incorrect.

michaelolbrich commented 2 months ago

Commit message fixed and rebased.

hnez commented 2 months ago

Great, thanks!