Added error message on SDRplay source when API isn't working

pull/190/head
Ryzerth 2021-07-27 16:32:25 +02:00
rodzic 0498a48b93
commit 14fae89a0b
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -116,7 +116,11 @@ public:
cbFuncs.StreamACbFn = streamCB;
cbFuncs.StreamBCbFn = streamCB;
sdrplay_api_Open();
sdrplay_api_ErrT err = sdrplay_api_Open();
if (err != sdrplay_api_Success) {
spdlog::error("Could not intiatialized the SDRplay API. Make sure that the service is running.");
return;
}
sampleRate = 2000000.0;
srId = 0;