xlxd version 1.1.3

* added connection compatibility with KI4LKF’s dxrfd
This commit is contained in:
LX3JL 2016-02-10 19:41:53 +01:00
parent 5599420d92
commit 4831ba8829
2 changed files with 22 additions and 4 deletions

View File

@ -401,9 +401,27 @@ void CDextraProtocol::EncodeKeepAlivePacket(CBuffer *Buffer)
void CDextraProtocol::EncodeConnectAckPacket(CBuffer *Buffer)
{
uint8 tag[] = { 'A','C','K',0 };
Buffer->resize(Buffer->size()-1);
Buffer->Append(tag, sizeof(tag));
uint8 xrf[] = { 'X','R','F' };
// is it for a XRF or repeater
if ( Buffer->Compare(xrf, sizeof(xrf)) == 0 )
{
// XRFxxx
uint8 rm = (Buffer->data())[8];
uint8 lm = (Buffer->data())[9];
Buffer->clear();
Buffer->Set((uint8 *)(const char *)GetReflectorCallsign(), CALLSIGN_LEN);
Buffer->Append(lm);
Buffer->Append(rm);
Buffer->Append((uint8)0);
}
else
{
// regular repeater
uint8 tag[] = { 'A','C','K',0 };
Buffer->resize(Buffer->size()-1);
Buffer->Append(tag, sizeof(tag));
}
}
void CDextraProtocol::EncodeConnectNackPacket(CBuffer *Buffer)

View File

@ -48,7 +48,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 1
#define VERSION_REVISION 2
#define VERSION_REVISION 3
// global ------------------------------------------------------