Skip to content

Commit

Permalink
Merge pull request g4klx#624 from msraya/master
Browse files Browse the repository at this point in the history
Remove DG-ID clear to zero in order to use DG-ID room switch in C4FM servers
  • Loading branch information
g4klx authored Aug 4, 2020
2 parents c57a313 + ffd90f6 commit b0d8281
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions YSFControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@ bool CYSFControl::processVWData(bool valid, unsigned char *data)

CYSFFICH fich = m_lastFICH;

// Remove any DG-ID information
fich.setDGId(0U);
fich.encode(data + 2U);

data[0U] = TAG_DATA;
Expand Down Expand Up @@ -281,8 +279,6 @@ bool CYSFControl::processVWData(bool valid, unsigned char *data)

CYSFFICH fich = m_lastFICH;

// Remove any DG-ID information
fich.setDGId(0U);
fich.encode(data + 2U);

data[0U] = TAG_EOT;
Expand Down Expand Up @@ -334,8 +330,6 @@ bool CYSFControl::processVWData(bool valid, unsigned char *data)
LogDebug("YSF, V Mode 3, seq %u, AMBE FEC %u/720 (%.1f%%)", m_rfFrames % 128, errors, float(errors) / 7.2F);
}

// Remove any DG-ID information
fich.setDGId(0U);
fich.encode(data + 2U);

data[0U] = TAG_DATA;
Expand Down Expand Up @@ -411,8 +405,6 @@ bool CYSFControl::processDNData(bool valid, unsigned char *data)

CYSFFICH fich = m_lastFICH;

// Remove any DG-ID information
fich.setDGId(0U);
fich.encode(data + 2U);

data[0U] = TAG_DATA;
Expand Down Expand Up @@ -449,8 +441,6 @@ bool CYSFControl::processDNData(bool valid, unsigned char *data)

CYSFFICH fich = m_lastFICH;

// Remove any DG-ID information
fich.setDGId(0U);
fich.encode(data + 2U);

data[0U] = TAG_EOT;
Expand Down Expand Up @@ -522,8 +512,6 @@ bool CYSFControl::processDNData(bool valid, unsigned char *data)

CYSFFICH fich = m_lastFICH;

// Remove any DG-ID information
fich.setDGId(0U);
fich.encode(data + 2U);

data[0U] = TAG_DATA;
Expand Down Expand Up @@ -609,7 +597,6 @@ bool CYSFControl::processDNData(bool valid, unsigned char *data)

CYSFFICH fich = m_lastFICH;
fich.setFI(YSF_FI_HEADER);
fich.setDGId(0U);
fich.encode(buffer + 2U);

unsigned char csd1[20U], csd2[20U];
Expand Down Expand Up @@ -646,8 +633,6 @@ bool CYSFControl::processDNData(bool valid, unsigned char *data)

fich = m_lastFICH;

// Remove any DG-ID information
fich.setDGId(0U);
fich.encode(data + 2U);

data[0U] = TAG_DATA;
Expand Down Expand Up @@ -720,8 +705,6 @@ bool CYSFControl::processFRData(bool valid, unsigned char *data)

CYSFFICH fich = m_lastFICH;

// Remove any DG-ID information
fich.setDGId(0U);
fich.encode(data + 2U);

data[0U] = TAG_DATA;
Expand Down Expand Up @@ -758,8 +741,6 @@ bool CYSFControl::processFRData(bool valid, unsigned char *data)

CYSFFICH fich = m_lastFICH;

// Remove any DG-ID information
fich.setDGId(0U);
fich.encode(data + 2U);

data[0U] = TAG_EOT;
Expand Down Expand Up @@ -807,8 +788,6 @@ bool CYSFControl::processFRData(bool valid, unsigned char *data)

CYSFFICH fich = m_lastFICH;

// Remove any DG-ID information
fich.setDGId(0U);
fich.encode(data + 2U);

data[0U] = TAG_DATA;
Expand Down

0 comments on commit b0d8281

Please sign in to comment.