From 6749775430b66cde4790573be219427bbb5121d7 Mon Sep 17 00:00:00 2001 From: LX3JL Date: Sun, 17 Nov 2019 10:14:56 +0100 Subject: [PATCH] xlxd 2.3.2 Added YSF 'auto-link' feature --- src/cysfprotocol.cpp | 5 +++++ src/main.h | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/cysfprotocol.cpp b/src/cysfprotocol.cpp index 6dc3a1e..0905276 100644 --- a/src/cysfprotocol.cpp +++ b/src/cysfprotocol.cpp @@ -176,6 +176,11 @@ void CYsfProtocol::Task(void) // create the client CYsfClient *newclient = new CYsfClient(Callsign, Ip); + // aautolink, if enabled + #if YSF_AUTOLINK_ENABLE + newclient->SetReflectorModule(YSF_AUTOLINK_MODULE); + #endif + // and append clients->AddClient(newclient); } diff --git a/src/main.h b/src/main.h index a59d6c1..d54c193 100644 --- a/src/main.h +++ b/src/main.h @@ -3,7 +3,7 @@ // xlxd // // Created by Jean-Luc Deltombe (LX3JL) on 31/10/2015. -// Copyright © 2015-2019 Jean-Luc Deltombe (LX3JL). All rights reserved. +// Copyright © 2015 Jean-Luc Deltombe (LX3JL). All rights reserved. // // ---------------------------------------------------------------------------- // This file is part of xlxd. @@ -49,7 +49,7 @@ #define VERSION_MAJOR 2 #define VERSION_MINOR 3 -#define VERSION_REVISION 1 +#define VERSION_REVISION 2 // global ------------------------------------------------------ @@ -120,6 +120,8 @@ #define YSF_KEEPALIVE_TIMEOUT (YSF_KEEPALIVE_PERIOD*10) // in seconds #define YSF_DEFAULT_NODE_TX_FREQ 437000000 // in Hz #define YSF_DEFAULT_NODE_RX_FREQ 437000000 // in Hz +#define YSF_AUTOLINK_ENABLE 0 // 1 = enable, 0 = disable auto-link +#define YSF_AUTOLINK_MODULE 'B' // module for client to auto-link to // Transcoder server --------------------------------------------