fix typo mentioned in #174

This commit is contained in:
AlexandreRouma 2024-02-21 18:47:50 +01:00
parent a987c112a3
commit 7c933d5103
3 changed files with 5 additions and 5 deletions

View File

@ -84,7 +84,7 @@ void SourceManager::tune(double freq) {
if (selectedHandler == NULL) { if (selectedHandler == NULL) {
return; return;
} }
// TODO: No need to always retune the hardware in panadpter mode // TODO: No need to always retune the hardware in Panadapter mode
selectedHandler->tuneHandler(((tuneMode == TuningMode::NORMAL) ? freq : ifFreq) + tuneOffset, selectedHandler->ctx); selectedHandler->tuneHandler(((tuneMode == TuningMode::NORMAL) ? freq : ifFreq) + tuneOffset, selectedHandler->ctx);
onRetune.emit(freq); onRetune.emit(freq);
currentFreq = freq; currentFreq = freq;
@ -100,7 +100,7 @@ void SourceManager::setTuningMode(TuningMode mode) {
tune(currentFreq); tune(currentFreq);
} }
void SourceManager::setPanadpterIF(double freq) { void SourceManager::setPanadapterIF(double freq) {
ifFreq = freq; ifFreq = freq;
tune(currentFreq); tune(currentFreq);
} }

View File

@ -35,7 +35,7 @@ public:
void tune(double freq); void tune(double freq);
void setTuningOffset(double offset); void setTuningOffset(double offset);
void setTuningMode(TuningMode mode); void setTuningMode(TuningMode mode);
void setPanadpterIF(double freq); void setPanadapterIF(double freq);
std::vector<std::string> getSourceNames(); std::vector<std::string> getSourceNames();

View File

@ -86,7 +86,7 @@ public:
} }
// Switch source to panadapter mode // Switch source to panadapter mode
sigpath::sourceManager.setPanadpterIF(ifFreq); sigpath::sourceManager.setPanadapterIF(ifFreq);
sigpath::sourceManager.setTuningMode(SourceManager::TuningMode::PANADAPTER); sigpath::sourceManager.setTuningMode(SourceManager::TuningMode::PANADAPTER);
sigpath::sourceManager.onRetune.bindHandler(&_retuneHandler); sigpath::sourceManager.onRetune.bindHandler(&_retuneHandler);
@ -131,7 +131,7 @@ private:
ImGui::FillWidth(); ImGui::FillWidth();
if (ImGui::InputDouble(CONCAT("##_rigctl_if_freq_", _this->name), &_this->ifFreq, 100.0, 100000.0, "%.0f")) { if (ImGui::InputDouble(CONCAT("##_rigctl_if_freq_", _this->name), &_this->ifFreq, 100.0, 100000.0, "%.0f")) {
if (_this->running) { if (_this->running) {
sigpath::sourceManager.setPanadpterIF(_this->ifFreq); sigpath::sourceManager.setPanadapterIF(_this->ifFreq);
} }
config.acquire(); config.acquire();
config.conf[_this->name]["ifFreq"] = _this->ifFreq; config.conf[_this->name]["ifFreq"] = _this->ifFreq;