summaryrefslogtreecommitdiff
path: root/cMain.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-10-10 22:07:04 +0100
committerDave Hibberd <d@vehibberd.com>2023-10-10 22:07:04 +0100
commit7b2a99c53b210949fb2e993e65b6be66a9cbf7a1 (patch)
treee5feda7463d38022eef6eedf032423189e9d3dce /cMain.c
parent084ecb74f6007abbb7e1578675964ac9352ef822 (diff)
New upstream version 6.0.24.15upstream/6.0.24.15
Diffstat (limited to 'cMain.c')
-rw-r--r--cMain.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/cMain.c b/cMain.c
index 9acb24a..abab877 100644
--- a/cMain.c
+++ b/cMain.c
@@ -139,6 +139,7 @@ extern BOOL ADIFLogEnabled;
extern UCHAR LogDirectory[260];
extern BOOL EventsEnabled;
extern BOOL SaveAPRSMsgs;
+BOOL M0LTEMap = FALSE;
//TNCTABLE DD 0
//NUMBEROFSTREAMS DD 0
@@ -788,6 +789,8 @@ BOOL Start()
ADIFLogEnabled = cfg->C_ADIF;
EventsEnabled = cfg->C_EVENTS;
SaveAPRSMsgs = cfg->C_SaveAPRSMsgs;
+ M0LTEMap = cfg->C_M0LTEMap;
+
// Get pointers to PASSWORD and APPL1 commands
@@ -939,7 +942,8 @@ BOOL Start()
PORT->QUAL_ADJUST = (UCHAR)PortRec->QUALADJUST;
PORT->DIGIFLAG = PortRec->DIGIFLAG;
- PORT->DIGIPORT = PortRec->DIGIPORT;
+ if (PortRec->DIGIPORT && CanPortDigi(PortRec->DIGIPORT))
+ PORT->DIGIPORT = PortRec->DIGIPORT;
PORT->DIGIMASK = PortRec->DIGIMASK;
PORT->USERS = (UCHAR)PortRec->USERS;
@@ -1074,6 +1078,8 @@ BOOL Start()
KISS->KISSCMD = realloc(KISS->KISSCMD, KISS->KISSCMDLEN);
}
+ PORT->SendtoM0LTEMap = PortRec->SendtoM0LTEMap;
+
if (PortRec->BBSFLAG) // Appl 1 not permitted - BBSFLAG=NOBBS
PORT->PERMITTEDAPPLS &= 0xfffffffe; // Clear bottom bit
@@ -2075,7 +2081,6 @@ VOID TIMERINTERRUPT()
L3FastTimer();
L4TimerProc();
-
}
// SEE IF ANY FRAMES TO TRACE