mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-01 21:54:39 -04:00
Cleanup, demod limits, prevent negative freq, move iq resampler process back to demodulator pre thread
This commit is contained in:
@@ -145,9 +145,12 @@ void SDRThread::threadMain() {
|
||||
|
||||
switch (command.cmd) {
|
||||
case SDRThreadCommand::SDR_THREAD_CMD_TUNE:
|
||||
std::cout << "Set frequency: " << command.int_value << std::endl;
|
||||
freq_changed = true;
|
||||
new_freq = command.int_value;
|
||||
if (new_freq < SRATE / 2) {
|
||||
new_freq = SRATE / 2;
|
||||
}
|
||||
std::cout << "Set frequency: " << new_freq << std::endl;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user