diff --git a/src/demod/DemodulatorThread.cpp b/src/demod/DemodulatorThread.cpp index 17d6f69..9c7d07e 100644 --- a/src/demod/DemodulatorThread.cpp +++ b/src/demod/DemodulatorThread.cpp @@ -99,7 +99,7 @@ void DemodulatorThread::threadMain() { std::cout << "Demodulator thread started.." << std::endl; - switch (demodulatorType) { + switch (demodulatorType.load()) { case DEMOD_TYPE_FM: break; case DEMOD_TYPE_LSB: