Corrected warnings (no problems)

pull/13/head
boblark 3 years ago
parent f46914a958
commit bd14b2b885
  1. 3
      radioModulatedGenerator_F32.cpp

@ -34,12 +34,14 @@ void radioModulatedGenerator_F32::update(void) {
float32_t a, b, deltaPhase, phaseC, amSig; float32_t a, b, deltaPhase, phaseC, amSig;
// Input 0 is for amplitude modulation. // Input 0 is for amplitude modulation.
inAmpl = NULL;
if(doAM) { if(doAM) {
inAmpl = AudioStream_F32::receiveReadOnly_f32(0); inAmpl = AudioStream_F32::receiveReadOnly_f32(0);
if (!inAmpl) return; if (!inAmpl) return;
} }
// Input 1 is for phase or frequency modulation. // Input 1 is for phase or frequency modulation.
inPhaseFreq = NULL;
if(doPM || doFM) { if(doPM || doFM) {
inPhaseFreq = AudioStream_F32::receiveReadOnly_f32(1); inPhaseFreq = AudioStream_F32::receiveReadOnly_f32(1);
if (!inPhaseFreq) { if (!inPhaseFreq) {
@ -55,6 +57,7 @@ void radioModulatedGenerator_F32::update(void) {
return; return;
} }
outBlockQ = NULL;
if(bothIQ) { if(bothIQ) {
outBlockQ = AudioStream_F32::allocate_f32(); outBlockQ = AudioStream_F32::allocate_f32();
if (!outBlockQ) { if (!outBlockQ) {

Loading…
Cancel
Save