From: Gerhard Sittig Date: Thu, 25 May 2017 23:34:55 +0000 (+0200) Subject: asix-sigma: Stabilize channel assignment for different samplerates X-Git-Tag: libsigrok-0.5.0~44 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3281cf59aa822563e6ce2f5a21597e59327296ad;p=libsigrok.git asix-sigma: Stabilize channel assignment for different samplerates 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. --- diff --git a/src/hardware/asix-sigma/protocol.c b/src/hardware/asix-sigma/protocol.c index 2c692371..f8289ba7 100644 --- a/src/hardware/asix-sigma/protocol.c +++ b/src/hardware/asix-sigma/protocol.c @@ -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; }