mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
Fix compiler warnings
This commit is contained in:
parent
c895363e3b
commit
3e6edfa17f
@ -1048,7 +1048,7 @@ void USRPOutput::webapiReverseSendSettings(QList<QString>& deviceSettingsKeys, c
|
||||
// transfer data that has been modified. When force is on transfer all data except reverse API data
|
||||
|
||||
if (deviceSettingsKeys.contains("antennaPath") || force) {
|
||||
swgUsrpOutputSettings->setAntennaPath(&QString(settings.m_antennaPath));
|
||||
swgUsrpOutputSettings->setAntennaPath(new QString(settings.m_antennaPath));
|
||||
}
|
||||
if (deviceSettingsKeys.contains("centerFrequency") || force) {
|
||||
swgUsrpOutputSettings->setCenterFrequency(settings.m_centerFrequency);
|
||||
@ -1057,7 +1057,7 @@ void USRPOutput::webapiReverseSendSettings(QList<QString>& deviceSettingsKeys, c
|
||||
swgUsrpOutputSettings->setDevSampleRate(settings.m_devSampleRate);
|
||||
}
|
||||
if (deviceSettingsKeys.contains("clockSource") || force) {
|
||||
swgUsrpOutputSettings->setClockSource(&QString(settings.m_clockSource));
|
||||
swgUsrpOutputSettings->setClockSource(new QString(settings.m_clockSource));
|
||||
}
|
||||
if (deviceSettingsKeys.contains("gain") || force) {
|
||||
swgUsrpOutputSettings->setGain(settings.m_gain);
|
||||
|
@ -98,7 +98,7 @@ void USRPOutputThread::run()
|
||||
m_packets++;
|
||||
if (samples_sent != DeviceUSRP::blockSize)
|
||||
{
|
||||
qDebug("USRPOutputThread::run written %d/%d samples", samples_sent, DeviceUSRP::blockSize);
|
||||
qDebug("USRPOutputThread::run written %ld/%d samples", samples_sent, DeviceUSRP::blockSize);
|
||||
}
|
||||
}
|
||||
catch (std::exception& e)
|
||||
|
@ -132,7 +132,7 @@ void USRPInputThread::run()
|
||||
m_packets++;
|
||||
if (samples_received != DeviceUSRP::blockSize)
|
||||
{
|
||||
qDebug("USRPInputThread::run - received %d/%d samples", samples_received, DeviceUSRP::blockSize);
|
||||
qDebug("USRPInputThread::run - received %ld/%d samples", samples_received, DeviceUSRP::blockSize);
|
||||
}
|
||||
if (md.error_code == uhd::rx_metadata_t::ERROR_CODE_TIMEOUT)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user