Skip to content
Snippets Groups Projects
Commit ccb1b01f authored by Erik von Reis's avatar Erik von Reis
Browse files

RTS: ADC read 'max_loops' reset per card

Previously in the adc read function, a slow card would lead to 'max_loops' dropping to 1 and staying there for future cards.
Fast ADCs read after slow ADCs would not have the output data properly decimated.
parent 7f650ca3
No related branches found
No related tags found
4 merge requests!439RCG 5.0 release fro deb 10,!366Merge with branch 4.2,!365Merge branch 'branch-4.2' into master-branch-4.2-merge,!364RTS: ADC read 'max_loops' reset per card
......@@ -323,6 +323,7 @@ iop_adc_read( adcInfo_t* adcinfo, int cpuClk[] )
// loops and max_loops are usually equal to UNDERSAMPLE, but on the first cycle
// they loops may be less.
max_loops = UNDERSAMPLE;
if(first_adc_read)
{
loops = UNDERSAMPLE - cdsPciModules.adcTimeShift[card];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment