mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 17:28:50 -05:00
perseus: fix build error
descr->firmware_downloaded is private and require perseus-in.h that is
not installed by libperseus-sdr; see]
e390356c86/Makefile.am
line 44
/Users/rainbow/tmp/my/sdrangel/devices/perseus/deviceperseusscan.cpp:45:18: error: member access into incomplete type 'perseus_descr' (aka 'perseus_descr_ds')
if (descr->firmware_downloaded)
This commit is contained in:
parent
121504eeb3
commit
a53755589e
@ -29,33 +29,24 @@ bool DevicePerseusScan::scan(int nbDevices)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool done = true;
|
||||
bool done = true;
|
||||
perseus_descr *descr;
|
||||
eeprom_prodid prodid;
|
||||
|
||||
for (int deviceIndex = 0; deviceIndex < nbDevices; deviceIndex++)
|
||||
{
|
||||
if ((descr = perseus_open(deviceIndex)) == 0)
|
||||
if ((descr = perseus_open(deviceIndex)) == 0)
|
||||
{
|
||||
qCritical("DevicePerseusScan::scan: device #%d open error: %s", deviceIndex, perseus_errorstr());
|
||||
perseus_close(descr);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (descr->firmware_downloaded)
|
||||
{
|
||||
qDebug("DevicePerseusScan::scan: device #%d firmware is already downloaded", deviceIndex);
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug("DevicePerseusScan::scan: device #%d firmware is not yet downloaded", deviceIndex);
|
||||
done = false;
|
||||
}
|
||||
qCritical("DevicePerseusScan::scan: device #%d open error: %s", deviceIndex, perseus_errorstr());
|
||||
perseus_close(descr);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (perseus_firmware_download(descr, 0) < 0)
|
||||
{
|
||||
qCritical("DevicePerseusScan::scan: device #%d firmware download error: %s", deviceIndex, perseus_errorstr());
|
||||
perseus_close(descr);
|
||||
done = false;
|
||||
continue;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user