Skip to content

Commit 4dc9715

Browse files
committed
removed conditional declare
1 parent a8a82af commit 4dc9715

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

RadioIQMixer_F32.cpp

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,18 @@ void RadioIQMixer_F32::update(void) {
3838
if (!blockIn0)
3939
return;
4040

41-
if(twoChannel) {
42-
blockIn1 = AudioStream_F32::receiveWritable_f32(1);
43-
if (!blockIn1) {
44-
AudioStream_F32::release(blockIn0);
45-
if(errorPrintIQM) Serial.println("IQMIXER-ERR: No 1 input memory");
46-
return;
47-
}
48-
}
41+
if(twoChannel)
42+
{
43+
blockIn1 = AudioStream_F32::receiveWritable_f32(1);
44+
if (!blockIn1)
45+
{
46+
AudioStream_F32::release(blockIn0);
47+
if(errorPrintIQM) Serial.println("IQMIXER-ERR: No 1 input memory");
48+
return;
49+
}
50+
}
51+
else
52+
blockIn1 = NULL;
4953

5054
// Try to get a pair of blocks for the IQ output
5155
blockOut_i = AudioStream_F32::allocate_f32();

0 commit comments

Comments
 (0)