mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-05 06:15:30 +00:00
Reset outgoing DG-IDs to zero for compatibility reasons.
This commit is contained in:
parent
70f956a0df
commit
e6a196f3a7
9 changed files with 16 additions and 11 deletions
|
|
@ -370,8 +370,13 @@ int CDGIdGateway::run()
|
|||
|
||||
if (currentDGId != 0U && dgIdNetwork[currentDGId] != NULL) {
|
||||
// Only allow the wanted modes through
|
||||
if ((dgIdNetwork[currentDGId]->m_modes & dt) != 0U)
|
||||
dgIdNetwork[currentDGId]->write(currentDGId, buffer);
|
||||
if ((dgIdNetwork[currentDGId]->m_modes & dt) != 0U) {
|
||||
// Set the DG-ID to zero for compatibility
|
||||
fich.setDGId(0U);
|
||||
fich.encode(buffer + 35U);
|
||||
|
||||
dgIdNetwork[currentDGId]->write(currentDGId, dt, buffer);
|
||||
}
|
||||
|
||||
inactivityTimer.setTimeout(dgIdNetwork[currentDGId]->m_rfHangTime);
|
||||
inactivityTimer.start();
|
||||
|
|
@ -396,7 +401,7 @@ int CDGIdGateway::run()
|
|||
fich.setDGId(i);
|
||||
fich.encode(buffer + 35U);
|
||||
|
||||
rptNetwork.write(0U, buffer);
|
||||
rptNetwork.write(0U, 0U, buffer);
|
||||
|
||||
inactivityTimer.setTimeout(dgIdNetwork[i]->m_netHangTime);
|
||||
inactivityTimer.start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue