mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
sdrplayv3: use SDRPLAY_MAX_DEVICES in enumOriginDevices()
This makes it consistent with openDevice() which already uses this constant provided by the API.
This commit is contained in:
parent
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user