diff --git a/plutosdr_source/src/main.cpp b/plutosdr_source/src/main.cpp index 4a785f7c..6186da38 100644 --- a/plutosdr_source/src/main.cpp +++ b/plutosdr_source/src/main.cpp @@ -170,6 +170,7 @@ private: ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX()); if (_this->running) { style::beginDisabled(); } if (ImGui::InputFloat(CONCAT("##_samplerate_select_", _this->name), &_this->sampleRate, 1, 1000, 0)) { + _this->sampleRate = std::clamp(_this->sampleRate, 500000, 61000000); core::setInputSampleRate(_this->sampleRate); config.aquire(); config.conf["sampleRate"] = _this->sampleRate;