Fixed FM bug

This commit is contained in:
Ryzerth
2021-04-18 00:13:32 +02:00
parent f760aba7dd
commit 5aa9359236
2 changed files with 6 additions and 3 deletions

View File

@ -145,11 +145,8 @@ namespace dsp {
}
void setDeviation(float deviation) {
std::lock_guard<std::mutex> lck(generic_block<FMDemod>::ctrlMtx);
generic_block<FMDemod>::tempStop();
_deviation = deviation;
phasorSpeed = (2 * FL_M_PI) / (_sampleRate / _deviation);
generic_block<FMDemod>::tempStart();
}
float getDeviation() {