diff --git a/src/demod/DemodulatorThread.cpp b/src/demod/DemodulatorThread.cpp index a2d524f..e3e163f 100644 --- a/src/demod/DemodulatorThread.cpp +++ b/src/demod/DemodulatorThread.cpp @@ -163,7 +163,7 @@ void DemodulatorThread::threadMain() { freqdem_demodulate_block(demodFM, &agcData[0], numWritten, &demodOutputData[0]); } else { float p; - switch (demodulatorType) { + switch (demodulatorType.load()) { case DEMOD_TYPE_LSB: for (int i = 0; i < numWritten; i++) { // Reject upper band nco_crcf_mix_up(ssbShifterUp, resampledData[i], &x);