mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
Merge pull request #1670 from dforsi/master
Fix cppcheck error and compiler warning
This commit is contained in:
commit
485986acec
@ -2165,7 +2165,7 @@ void ADSBDemodGUI::decodeCommB(const QByteArray data, const QDateTime dateTime,
|
||||
float longitude = longitudeFix * (360.0f / 1048576.0f);
|
||||
|
||||
bool positionInconsistent = !aircraft->m_positionValid
|
||||
|| (positionValid && aircraft->m_positionValid && ((abs(latitude - aircraft->m_latitude > 2.0f)) || (abs(longitude - aircraft->m_longitude) > 2.0f)))
|
||||
|| (positionValid && aircraft->m_positionValid && ((abs(latitude - aircraft->m_latitude) > 2.0f) || (abs(longitude - aircraft->m_longitude) > 2.0f)))
|
||||
|| (!positionValid && ((latitudeFix != 0) || (longitudeFix != 0)));
|
||||
|
||||
int pressureAltFix = ((data[9] & 0x7f) << 8) | (data[10] & 0xff);
|
||||
|
@ -203,7 +203,7 @@ void AMDemodSink::processOneSample(Complex &ci)
|
||||
|
||||
if (m_audioBufferFill >= m_audioBuffer.size())
|
||||
{
|
||||
std:;size_t res = m_audioFifo.write((const quint8*)&m_audioBuffer[0], std::min(m_audioBufferFill, m_audioBuffer.size()));
|
||||
std::size_t res = m_audioFifo.write((const quint8*)&m_audioBuffer[0], std::min(m_audioBufferFill, m_audioBuffer.size()));
|
||||
|
||||
if (res != m_audioBufferFill)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user