Remove DG-ID filtering from the YCS Network handler.
This commit is contained in:
parent
5015ad9ed8
commit
2e48fdd2c7
2 changed files with 1 additions and 12 deletions
|
@ -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…
Reference in a new issue