Skip to content

Commit

Permalink
remove some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dbehnke committed Oct 10, 2022
1 parent b62b990 commit c2424a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions USRP2M17/USRP2M17.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,13 @@ int CUSRP2M17::run()
uint32_t m17FrameType = m_conv.getM17(m_m17Frame);

if( (m_usrpcs.size()) > 3 && (m_usrpcs.size() < 8) ){
LogMessage("debug: encoding usrpcs: %s", m_usrpcs.c_str());
memset(m17_src, ' ', 9);
memcpy(m17_src, m_usrpcs.c_str(), m_usrpcs.size());
m17_src[8] = 'D';
m17_src[9] = 0x00;
encode_callsign(m17_src);
}
else{
LogMessage("debug: encoding m_callsign: %s", m_callsign.c_str());
memcpy(m17_src, m_callsign.c_str(), 9);
m17_src[9] = 0x00;
encode_callsign(m17_src);
Expand Down Expand Up @@ -489,7 +487,7 @@ int CUSRP2M17::run()

if(!m_usrpFrames){
m_conv.putUSRPHeader();
LogMessage("USRP text info received first frame, callsign=%s", m_usrpcs.c_str());
LogMessage("USRP text info received first frame, callsign=%s (%d bytes)", m_usrpcs.c_str(), m_usrpcs.size());
}
m_usrpFrames++;
}
Expand Down

0 comments on commit c2424a7

Please sign in to comment.