Fix missing first frame from outgoing DCS stream

As every DCS data packet has both the D-STAR header info and DV data in it,
we must process DV data for all DCS data packets, including the first packet
of a stream.
pull/17/head
Nonoo 9 years ago
parent 253ab1322e
commit fd000596e7

@ -94,8 +94,8 @@ void CDcsProtocol::Task(void)
if ( g_GateKeeper.MayTransmit(Header->GetMyCallsign(), Ip, PROTOCOL_DCS, Header->GetRpt2Module()) )
{
// handle it
if ( !OnDvHeaderPacketIn(Header, Ip) )
{
OnDvHeaderPacketIn(Header, Ip);
if ( !Frame->IsLastPacket() )
{
//std::cout << "DCS DV frame" << std::endl;
@ -108,12 +108,6 @@ void CDcsProtocol::Task(void)
}
}
else
{
//std::cout << "DCS DV header:" << std::endl << *Header << std::endl;
delete Frame;
}
}
else
{
delete Header;
delete Frame;

Loading…
Cancel
Save

Powered by TurnKey Linux.