1
0
Fork 0

Remove DG-ID filtering from the YCS Network handler.

ycs232-kbc
Jonathan Naylor 4 years ago
parent 5015ad9ed8
commit 2e48fdd2c7

@ -19,6 +19,6 @@
#if !defined(VERSION_H)
#define VERSION_H
const char* VERSION = "20200926";
const char* VERSION = "20200927";
#endif

@ -18,7 +18,6 @@
#include "YSFDefines.h"
#include "YCSNetwork.h"
#include "YSFFICH.h"
#include "Utils.h"
#include "Log.h"
@ -242,16 +241,6 @@ void CYCSNetwork::clock(unsigned int ms)
if (::memcmp(buffer, "YSFD", 4U) == 0) {
m_recvPollTimer.start();
CYSFFICH fich;
bool valid = fich.decode(buffer + 35U);
if (!valid)
return;
// Reject any audio which doesn't match our requested DG-Id
unsigned char dgId = fich.getDGId();
if (dgId != m_dgId)
return;
unsigned char len = length;
m_buffer.addData(&len, 1U);

Loading…
Cancel
Save