forked from PAWPAW-Mirror/lib_xua
Fix brace placement
Broken in commit 020cf2dad7.
Fix to ensure that samples are not output to USB layer on receipt of a
command.
This commit is contained in:
@@ -285,23 +285,23 @@ static inline unsigned DoSampleTransfer(chanend c_out, const int readBuffNo, con
|
|||||||
#else
|
#else
|
||||||
inuint(c_out);
|
inuint(c_out);
|
||||||
#endif
|
#endif
|
||||||
}
|
// TODO: run ds3 here
|
||||||
// TODO: run ds3 here
|
// Pass samplesIn[readBuffNo][0,I2S_DOWNSAMPLE_FACTOR][i]) to ds3()
|
||||||
// Pass samplesIn[readBuffNo][0,I2S_DOWNSAMPLE_FACTOR][i]) to ds3()
|
UserBufferManagement(samplesOut, samplesIn[readBuffNo][downsamplingCounter], i_audMan);
|
||||||
UserBufferManagement(samplesOut, samplesIn[readBuffNo][downsamplingCounter], i_audMan);
|
|
||||||
|
|
||||||
#if NUM_USB_CHAN_IN > 0
|
#if NUM_USB_CHAN_IN > 0
|
||||||
#pragma loop unroll
|
#pragma loop unroll
|
||||||
for(int i = 0; i < I2S_CHANS_ADC; i++)
|
for(int i = 0; i < I2S_CHANS_ADC; i++)
|
||||||
{
|
{
|
||||||
outuint(c_out, samplesIn[readBuffNo][downsamplingCounter][i]);
|
outuint(c_out, samplesIn[readBuffNo][downsamplingCounter][i]);
|
||||||
}
|
}
|
||||||
#pragma loop unroll
|
#pragma loop unroll
|
||||||
for (int i = PDM_MIC_INDEX; i < (NUM_PDM_MICS + PDM_MIC_INDEX); i++)
|
for (int i = PDM_MIC_INDEX; i < (NUM_PDM_MICS + PDM_MIC_INDEX); i++)
|
||||||
{
|
{
|
||||||
outuint(c_out, samplesIn[readBuffNo][downsamplingCounter][i]);
|
outuint(c_out, samplesIn[readBuffNo][downsamplingCounter][i]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user