kopia lustrzana https://github.com/f4exb/sdrangel
sdrplayv3: use SDRPLAY_MAX_DEVICES in enumOriginDevices()
This makes it consistent with openDevice() which already uses this constant provided by the API.pull/2088/head
rodzic
5e321e3ead
commit
f5b43fec2d
|
@ -96,7 +96,7 @@ void SDRPlayV3Plugin::enumOriginDevices(QStringList& listedHwIds, OriginDevices&
|
|||
sdrplay_api_LockDeviceApi();
|
||||
|
||||
sdrplay_api_ErrT err;
|
||||
sdrplay_api_DeviceT devs[6];
|
||||
sdrplay_api_DeviceT devs[SDRPLAY_MAX_DEVICES];
|
||||
unsigned int count;
|
||||
if ((err = sdrplay_api_GetDevices(devs, &count, sizeof(devs) / sizeof(sdrplay_api_DeviceT))) == sdrplay_api_Success)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue