From 1a9f7d31b7c781e0e01b1020d3f286caf3f35eea Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Tue, 3 Feb 2015 12:25:02 -0500 Subject: [PATCH] missing atomic load --- src/demod/DemodulatorThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: