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.
This commit is contained in:
parent
0498f7439f
commit
3281cf59aa
|
@ -736,6 +736,7 @@ static uint16_t sigma_dram_cluster_data(struct sigma_dram_cluster *cl, int idx)
|
||||||
sample = 0;
|
sample = 0;
|
||||||
sample |= cl->samples[idx].sample_lo << 0;
|
sample |= cl->samples[idx].sample_lo << 0;
|
||||||
sample |= cl->samples[idx].sample_hi << 8;
|
sample |= cl->samples[idx].sample_hi << 8;
|
||||||
|
sample = (sample >> 8) | (sample << 8);
|
||||||
return sample;
|
return sample;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue