Make buffer parsing more robust

Merged Vincent Michel requested to merge fix-buffer-parsing into master

Fix buffer parsing issue seen on ID13.

Consider an XMAP with 3 channels configured and the last one deactivated.

In the buffer, the data for the last channel (containing garbage) is reported as belonging to channel 0, overriding its actual data.

Merge request reports