mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-24 18:08:27 +01:00
Better check
Need to check if a device is actually selected, not just if there is one to select
This commit is contained in:
parent
ae1fd87f02
commit
1e5601e773
@ -319,7 +319,7 @@ private:
|
|||||||
static void start(void* ctx) {
|
static void start(void* ctx) {
|
||||||
LimeSDRSourceModule* _this = (LimeSDRSourceModule*)ctx;
|
LimeSDRSourceModule* _this = (LimeSDRSourceModule*)ctx;
|
||||||
if (_this->running) { return; }
|
if (_this->running) { return; }
|
||||||
if (_this->devCount == 0) { return; }
|
if (_this->selectedDevName.empty()) { return; }
|
||||||
|
|
||||||
// Open device
|
// Open device
|
||||||
_this->openDev = NULL;
|
_this->openDev = NULL;
|
||||||
@ -547,4 +547,4 @@ MOD_EXPORT void _DELETE_INSTANCE_(ModuleManager::Instance* instance) {
|
|||||||
MOD_EXPORT void _END_() {
|
MOD_EXPORT void _END_() {
|
||||||
config.disableAutoSave();
|
config.disableAutoSave();
|
||||||
config.save();
|
config.save();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user