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:
parent
1dc466e604
commit
98a193e591
@ -532,20 +532,16 @@ void RDSParser::decode_type0(unsigned int *group, bool B)
|
||||
if (af_1)
|
||||
{
|
||||
// @TODO: Find proper header or STL on OSX
|
||||
#ifndef __APPLE__
|
||||
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;
|
||||
#endif
|
||||
auto res = m_g0_alt_freq.insert(af_1/1e3);
|
||||
m_g0_af_updated = m_g0_af_updated || res.second;
|
||||
no_af += 1;
|
||||
}
|
||||
|
||||
if (af_2)
|
||||
{
|
||||
// @TODO: Find proper header or STL on OSX
|
||||
#ifndef __APPLE__
|
||||
std::pair<std::_Rb_tree_const_iterator<double>, bool> res = m_g0_alt_freq.insert(af_2/1e3);
|
||||
auto res = m_g0_alt_freq.insert(af_2/1e3);
|
||||
m_g0_af_updated = m_g0_af_updated || res.second;
|
||||
#endif
|
||||
no_af += 2;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user