mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-10-13 09:19:58 +02:00
Switch spectran http source module to use the remoteconfig endpoint as per #1354
This commit is contained in:
@@ -144,9 +144,7 @@ private:
|
||||
_this->tryConnect();
|
||||
}
|
||||
else if (connected && SmGui::Button("Disconnect##spectran_http_source")) {
|
||||
_this->client->onCenterFrequencyChanged.unbind(_this->onFreqChangedId);
|
||||
_this->client->onCenterFrequencyChanged.unbind(_this->onSamplerateChangedId);
|
||||
_this->client->close();
|
||||
_this->disconnect();
|
||||
}
|
||||
if (_this->running) { style::endDisabled(); }
|
||||
|
||||
@@ -173,6 +171,12 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
void disconnect() {
|
||||
client->onCenterFrequencyChanged.unbind(onFreqChangedId);
|
||||
client->onSamplerateChanged.unbind(onSamplerateChangedId);
|
||||
client->close();
|
||||
}
|
||||
|
||||
void onFreqChanged(double newFreq) {
|
||||
if (lastReportedFreq == newFreq) { return; }
|
||||
lastReportedFreq = newFreq;
|
||||
|
Reference in New Issue
Block a user