Skip to content

Commit

Permalink
try to use the usrpcs for both pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
dbehnke committed Oct 11, 2022
1 parent 1f87e58 commit f8697e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions USRP2YSF/USRP2YSF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ int CUSRP2YSF::run()
ysf_cnt = 0U;

::memcpy(m_ysfFrame + 0U, "YSFD", 4U);
::memcpy(m_ysfFrame + 4U, m_callsign.c_str(), YSF_CALLSIGN_LENGTH);
::memcpy(m_ysfFrame + 4U, m_usrpcs.c_str(), YSF_CALLSIGN_LENGTH);
::memcpy(m_ysfFrame + 14U, m_usrpcs.c_str(), YSF_CALLSIGN_LENGTH);
::memcpy(m_ysfFrame + 24U, "ALL ", YSF_CALLSIGN_LENGTH);
m_ysfFrame[34U] = 0U; // Net frame counter
Expand Down Expand Up @@ -448,7 +448,7 @@ int CUSRP2YSF::run()
else if (ysfFrameType == TAG_EOT) {

::memcpy(m_ysfFrame + 0U, "YSFD", 4U);
::memcpy(m_ysfFrame + 4U, m_callsign.c_str(), YSF_CALLSIGN_LENGTH);
::memcpy(m_ysfFrame + 4U, m_usrpcs.c_str(), YSF_CALLSIGN_LENGTH);
::memcpy(m_ysfFrame + 14U, m_usrpcs.c_str(), YSF_CALLSIGN_LENGTH);
::memcpy(m_ysfFrame + 24U, "ALL ", YSF_CALLSIGN_LENGTH);
m_ysfFrame[34U] = ysf_cnt; // Net frame counter
Expand Down Expand Up @@ -492,7 +492,7 @@ int CUSRP2YSF::run()
unsigned int fn = (ysf_cnt - 1U) % (m_conf.getFICHFrameTotal() + 1);

::memcpy(m_ysfFrame + 0U, "YSFD", 4U);
::memcpy(m_ysfFrame + 4U, m_callsign.c_str(), YSF_CALLSIGN_LENGTH);
::memcpy(m_ysfFrame + 4U, m_usrpcs.c_str(), YSF_CALLSIGN_LENGTH);
::memcpy(m_ysfFrame + 14U, m_usrpcs.c_str(), YSF_CALLSIGN_LENGTH);
::memcpy(m_ysfFrame + 24U, "ALL ", YSF_CALLSIGN_LENGTH);

Expand Down
2 changes: 1 addition & 1 deletion USRP2YSF/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
#if !defined(VERSION_H)
#define VERSION_H

const char* VERSION = "20221022";
const char* VERSION = "20221010";

#endif

0 comments on commit f8697e3

Please sign in to comment.