mirror of
				https://github.com/AlexandreRouma/SDRPlusPlus.git
				synced 2025-10-31 00:48:11 +01:00 
			
		
		
		
	Fixed bug
This commit is contained in:
		| @@ -163,6 +163,10 @@ private: | ||||
|         if (code == RADIO_IFACE_CMD_GET_MODE) { | ||||
|             *(int*)out = _this->demodId; | ||||
|         } | ||||
|         else if (code == RADIO_IFACE_CMD_SET_MODE) { | ||||
|             int in = *(int*)in; | ||||
|             if (in != _this->demodId) { _this->selectDemodById(in); } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     void selectDemod(Demodulator* demod) { | ||||
|   | ||||
| @@ -1,7 +1,8 @@ | ||||
| #pragma once | ||||
|  | ||||
| enum { | ||||
|     RADIO_IFACE_CMD_GET_MODE | ||||
|     RADIO_IFACE_CMD_GET_MODE, | ||||
|     RADIO_IFACE_CMD_SET_MODE | ||||
| }; | ||||
|  | ||||
| enum { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user