1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-15 12:51:49 -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:
Davide Gerhard 2019-04-19 08:32:44 +02:00
parent 121504eeb3
commit a53755589e
No known key found for this signature in database
GPG Key ID: 7CBEFA144857DC97

View File

@ -42,20 +42,11 @@ bool DevicePerseusScan::scan(int nbDevices)
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;
}
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