]> sigrok.org Git - libsigrok.git/commit
asix-sigma: Only change number of channels after successful firmware upload
authorGerhard Sittig <redacted>
Sun, 25 Jun 2017 10:11:03 +0000 (12:11 +0200)
committerUwe Hermann <redacted>
Tue, 27 Jun 2017 11:28:25 +0000 (13:28 +0200)
commitac9534f48a8656a52b1cfc504915531afd0b9f70
tree9f7e3629ffd6ad825c87aac2ad03ddffa26b0d95
parent7bcf21683e6b8f77d55eaab7da5ea0bbe2949a6b
asix-sigma: Only change number of channels after successful firmware upload

The asix-sigma driver supports different samplerates, which will involve
different firmware images and will affect the number of available logic
channels as well as their memory layout in downloaded sample data.

Make sure to only store the configuration's parameters after the setup
of that configuration has successfully completed, and make sure to store
a consistent set of parameters. Specifically don't change the number of
channels when the firmware upload failed.

This fixes part of bug #471.

Suggested-By: Marian Cingel <redacted>
src/hardware/asix-sigma/protocol.c