mirror of
				https://github.com/AlexandreRouma/SDRPlusPlus.git
				synced 2025-10-31 08:58:13 +01:00 
			
		
		
		
	Merge pull request #1021 from sergeyvfx/fix_start_crash
Fix crash in LimeSDR start when the device is disconnected
This commit is contained in:
		| @@ -330,7 +330,10 @@ private: | ||||
|         if (err) { | ||||
|             LMS_Close(_this->openDev); | ||||
|             LMS_Open(&_this->openDev, _this->devList[_this->devId], NULL); | ||||
|             LMS_Init(_this->openDev); | ||||
|             if (err = LMS_Init(_this->openDev)) { | ||||
|                 flog::error("Failed to re-initialize device ({})", err); | ||||
|                 return; | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         flog::warn("Channel count: {0}", LMS_GetNumChannels(_this->openDev, false)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user