]> sigrok.org Git - libsigrok.git/commitdiff
asix-sigma: Stabilize channel assignment for different samplerates
authorGerhard Sittig <redacted>
Thu, 25 May 2017 23:34:55 +0000 (01:34 +0200)
committerUwe Hermann <redacted>
Fri, 26 May 2017 20:48:11 +0000 (22:48 +0200)
Adjust the interpretation of acquired sample data such that regardless
of 50/100/200MHz samplerate the assignment of LA pins to sigrok channels
remains stable.

src/hardware/asix-sigma/protocol.c

index 2c6923718552824c4b36210caf70dae52e687c4c..f8289ba749d86491064bc94f75d0139a731c4851 100644 (file)
@@ -736,6 +736,7 @@ static uint16_t sigma_dram_cluster_data(struct sigma_dram_cluster *cl, int idx)
        sample = 0;
        sample |= cl->samples[idx].sample_lo << 0;
        sample |= cl->samples[idx].sample_hi << 8;
+       sample = (sample >> 8) | (sample << 8);
        return sample;
 }