summaryrefslogtreecommitdiff
path: root/ARDOP.c
diff options
context:
space:
mode:
Diffstat (limited to 'ARDOP.c')
-rw-r--r--ARDOP.c35
1 files changed, 21 insertions, 14 deletions
diff --git a/ARDOP.c b/ARDOP.c
index 8230039..ade0ecf 100644
--- a/ARDOP.c
+++ b/ARDOP.c
@@ -2061,21 +2061,12 @@ VOID * ARDOPExtInit(EXTPORTDATA * PortEntry)
strcat(TempScript, "ARQTIMEOUT 90\r");
// strcat(TempScript, "ROBUST False\r");
- strcat(TempScript, TNC->InitScript);
-
- free(TNC->InitScript);
- TNC->InitScript = TempScript;
-
- // Set MYCALL
-
-// strcat(TNC->InitScript,"FECRCV True\r");
-// strcat(TNC->InitScript,"AUTOBREAK True\r");
+ // Make MYAUX and MYCALL overridable
+
sprintf(Msg, "MYCALL %s\r", TNC->NodeCall);
- strcat(TNC->InitScript, Msg);
-// strcat(TNC->InitScript,"PROCESSID\r");
-// strcat(TNC->InitScript,"CODEC TRUE\r");
-// strcat(TNC->InitScript,"LISTEN TRUE\r");
+ strcat(TempScript, Msg);
+
for (i = 0; i < 32; i++)
{
@@ -2099,9 +2090,25 @@ VOID * ARDOPExtInit(EXTPORTDATA * PortEntry)
if (strlen(Aux) > 8)
{
Aux[strlen(Aux) - 1] = '\r';
- strcat(TNC->InitScript, Aux);
+ strcat(TempScript, Aux);
}
+
+ strcat(TempScript, TNC->InitScript);
+
+ free(TNC->InitScript);
+ TNC->InitScript = TempScript;
+
+
+
+// strcat(TNC->InitScript,"FECRCV True\r");
+// strcat(TNC->InitScript,"AUTOBREAK True\r");
+// strcat(TNC->InitScript,"PROCESSID\r");
+// strcat(TNC->InitScript,"CODEC TRUE\r");
+// strcat(TNC->InitScript,"LISTEN TRUE\r");
+
+
+
strcpy(TNC->CurrentMYC, TNC->NodeCall);
if (TNC->WL2K == NULL)