diff --git a/sdrplay_source/src/main.cpp b/sdrplay_source/src/main.cpp index c028dc68..29c32e31 100644 --- a/sdrplay_source/src/main.cpp +++ b/sdrplay_source/src/main.cpp @@ -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;