1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-19 06:41:47 -05:00

BFM demod: RDS EON program name fix

This commit is contained in:
f4exb 2015-12-18 08:39:34 +01:00
parent cdae494a92
commit cae6c94770

View File

@ -349,6 +349,7 @@ void RDSParser::clearAllFields()
m_g14_alt_freqs.clear(); m_g14_alt_freqs.clear();
m_g14_mapped_freqs.clear(); m_g14_mapped_freqs.clear();
std::memset(m_g14_program_service_name, ' ', sizeof(m_g14_program_service_name)); std::memset(m_g14_program_service_name, ' ', sizeof(m_g14_program_service_name));
m_g14_program_service_name[8] = '\0';
m_g14_alt_freq_set.clear(); m_g14_alt_freq_set.clear();
m_g14_mapped_freq_set.clear(); m_g14_mapped_freq_set.clear();
m_g14_psn_counter = 0; m_g14_psn_counter = 0;
@ -1049,6 +1050,7 @@ void RDSParser::decode_type14(unsigned int *group, bool B)
//qDebug("RDSParser::decode_type14: m_g14_psn_updated: %d", m_g14_psn_counter); //qDebug("RDSParser::decode_type14: m_g14_psn_updated: %d", m_g14_psn_counter);
std::pair<psns_map_t::iterator, bool> ret = m_g14_program_service_names.insert(psns_map_kv_t(pi_on, std::string(m_g14_program_service_name))); std::pair<psns_map_t::iterator, bool> ret = m_g14_program_service_names.insert(psns_map_kv_t(pi_on, std::string(m_g14_program_service_name)));
std::memset(m_g14_program_service_name, ' ', sizeof(m_g14_program_service_name)); std::memset(m_g14_program_service_name, ' ', sizeof(m_g14_program_service_name));
m_g14_program_service_name[8] = '\0';
m_g14_psn_counter = 0; m_g14_psn_counter = 0;
m_g14_data_available = ret.second; m_g14_data_available = ret.second;
} }
@ -1124,11 +1126,10 @@ void RDSParser::decode_type14(unsigned int *group, bool B)
{ {
ta_on = information & 0x01; ta_on = information & 0x01;
pty_on = (information >> 11) & 0x1f; pty_on = (information >> 11) & 0x1f;
/* //qDebug() << "RDSParser::decode_type14: PTY(ON):" << pty_table[int(pty_on)].c_str();
qDebug() << "RDSParser::decode_type14: PTY(ON):" << pty_table[int(pty_on)].c_str();
if(ta_on) { if(ta_on) {
qDebug() << "RDSParser::decode_type14: - TA"; qDebug() << "RDSParser::decode_type14: - TA";
}*/ }
break; break;
} }
case 14: // PIN(ON) case 14: // PIN(ON)
@ -1141,7 +1142,7 @@ void RDSParser::decode_type14(unsigned int *group, bool B)
case 15: // Reserved for broadcasters use case 15: // Reserved for broadcasters use
break; break;
default: default:
qDebug() << "RDSParser::decode_type14: invalid variant code:" << variant_code; //qDebug() << "RDSParser::decode_type14: invalid variant code:" << variant_code;
break; break;
} }
} }