|
|
@ -370,8 +370,13 @@ int CDGIdGateway::run()
|
|
|
|
|
|
|
|
|
|
|
|
if (currentDGId != 0U && dgIdNetwork[currentDGId] != NULL) {
|
|
|
|
if (currentDGId != 0U && dgIdNetwork[currentDGId] != NULL) {
|
|
|
|
// Only allow the wanted modes through
|
|
|
|
// Only allow the wanted modes through
|
|
|
|
if ((dgIdNetwork[currentDGId]->m_modes & dt) != 0U)
|
|
|
|
if ((dgIdNetwork[currentDGId]->m_modes & dt) != 0U) {
|
|
|
|
dgIdNetwork[currentDGId]->write(currentDGId, buffer);
|
|
|
|
// 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.setTimeout(dgIdNetwork[currentDGId]->m_rfHangTime);
|
|
|
|
inactivityTimer.start();
|
|
|
|
inactivityTimer.start();
|
|
|
@ -396,7 +401,7 @@ int CDGIdGateway::run()
|
|
|
|
fich.setDGId(i);
|
|
|
|
fich.setDGId(i);
|
|
|
|
fich.encode(buffer + 35U);
|
|
|
|
fich.encode(buffer + 35U);
|
|
|
|
|
|
|
|
|
|
|
|
rptNetwork.write(0U, buffer);
|
|
|
|
rptNetwork.write(0U, 0U, buffer);
|
|
|
|
|
|
|
|
|
|
|
|
inactivityTimer.setTimeout(dgIdNetwork[i]->m_netHangTime);
|
|
|
|
inactivityTimer.setTimeout(dgIdNetwork[i]->m_netHangTime);
|
|
|
|
inactivityTimer.start();
|
|
|
|
inactivityTimer.start();
|
|
|
|