Skip to content

Commit bd14b2b

Browse files
committed
Corrected warnings (no problems)
1 parent f46914a commit bd14b2b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

radioModulatedGenerator_F32.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ void radioModulatedGenerator_F32::update(void) {
3434
float32_t a, b, deltaPhase, phaseC, amSig;
3535

3636
// Input 0 is for amplitude modulation.
37+
inAmpl = NULL;
3738
if(doAM) {
3839
inAmpl = AudioStream_F32::receiveReadOnly_f32(0);
3940
if (!inAmpl) return;
4041
}
4142

4243
// Input 1 is for phase or frequency modulation.
44+
inPhaseFreq = NULL;
4345
if(doPM || doFM) {
4446
inPhaseFreq = AudioStream_F32::receiveReadOnly_f32(1);
4547
if (!inPhaseFreq) {
@@ -55,6 +57,7 @@ void radioModulatedGenerator_F32::update(void) {
5557
return;
5658
}
5759

60+
outBlockQ = NULL;
5861
if(bothIQ) {
5962
outBlockQ = AudioStream_F32::allocate_f32();
6063
if (!outBlockQ) {

0 commit comments

Comments
 (0)