From fd5806cab9f831df747fd2927bc5b6b6efd0d41f Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Mon, 7 Sep 2015 16:40:14 +0100 Subject: [PATCH] Fixed build issue - undeclared var. --- module_usb_audio/audio.xc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module_usb_audio/audio.xc b/module_usb_audio/audio.xc index 6b1dd261..7a784416 100755 --- a/module_usb_audio/audio.xc +++ b/module_usb_audio/audio.xc @@ -611,6 +611,7 @@ unsigned static deliver(chanend c_out, chanend ?c_spd_out, { // p_i2s_adc[index++] :> sample; // Manual IN instruction since compiler generates an extra setc per IN (bug #15256) + unsigned sample; asm volatile("in %0, res[%1]" : "=r"(sample) : "r"(p_i2s_adc[index++])); /* Note the use of readBuffNo changes based on frameCount */ @@ -701,7 +702,9 @@ unsigned static deliver(chanend c_out, chanend ?c_spd_out, for(int i = 0; i < I2S_CHANS_ADC; i += I2S_CHANS_PER_FRAME) { /* Manual IN instruction since compiler generates an extra setc per IN (bug #15256) */ + unsigned sample; asm volatile("in %0, res[%1]" : "=r"(sample) : "r"(p_i2s_adc[index++])); + if(buffIndex) samplesIn_1[((frameCount-1)&(I2S_CHANS_PER_FRAME-1))+i] = bitrev(sample); // channels 1, 3, 5.. on each line. else