1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

BFM demod: fixed iterator in RDS parser

This commit is contained in:
f4exb 2018-11-13 16:01:33 +01:00
parent 1dc466e604
commit 98a193e591

View File

@ -532,20 +532,16 @@ void RDSParser::decode_type0(unsigned int *group, bool B)
if (af_1) if (af_1)
{ {
// @TODO: Find proper header or STL on OSX // @TODO: Find proper header or STL on OSX
#ifndef __APPLE__ auto res = m_g0_alt_freq.insert(af_1/1e3);
std::pair<std::_Rb_tree_const_iterator<double>, bool> res = m_g0_alt_freq.insert(af_1/1e3); m_g0_af_updated = m_g0_af_updated || res.second;
m_g0_af_updated = m_g0_af_updated || res.second;
#endif
no_af += 1; no_af += 1;
} }
if (af_2) if (af_2)
{ {
// @TODO: Find proper header or STL on OSX // @TODO: Find proper header or STL on OSX
#ifndef __APPLE__ auto res = m_g0_alt_freq.insert(af_2/1e3);
std::pair<std::_Rb_tree_const_iterator<double>, bool> res = m_g0_alt_freq.insert(af_2/1e3);
m_g0_af_updated = m_g0_af_updated || res.second; m_g0_af_updated = m_g0_af_updated || res.second;
#endif
no_af += 2; no_af += 2;
} }