summaryrefslogtreecommitdiff
path: root/Moncode.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-09-29 21:39:29 +0100
committerDave Hibberd <hibby@debian.org>2026-09-29 21:39:29 +0100
commit03996c90ad158bac0c79a96ac48a9ee18b55ffe0 (patch)
treea55c533acacea4597ee1a8f44cd5b8fc762a36e2 /Moncode.c
parent98e42ffd455139c0f3ccbf4a670016dc0724a032 (diff)
parent592e5967b8fcd79423802071319d0c646f2080df (diff)
Update upstream source from tag 'upstream/6.0.25.41+repack'
Update to upstream version '6.0.25.41+repack' with Debian dir 3802bee500dcde3664bf28cab0ae7ef27f5ff7bd
Diffstat (limited to 'Moncode.c')
-rw-r--r--Moncode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Moncode.c b/Moncode.c
index 7e50701..b967615 100644
--- a/Moncode.c
+++ b/Moncode.c
@@ -34,6 +34,8 @@ along with LinBPQ/BPQ32. If not, see http://www.gnu.org/licenses
#include "cheaders.h"
#include "tncinfo.h"
+extern char NCMPTypes[6][28];
+
// MSGFLAG contains CMD/RESPONSE BITS
#define CMDBIT 4 // CURRENT MESSAGE IS A COMMAND
@@ -869,7 +871,7 @@ char * DISPLAY_NETROM(MESSAGE * ADJBUFFER, UCHAR * Output, int MsgLen)
if (Index == 0x0F) // NCMP
{
- Output += sprintf((char *)Output, " NCMP %x %x Type %x Code %x", Index, ID, TXNO, RXNO);
+ Output += sprintf((char *)Output, " NCMP Type %s Code %x", NCMPTypes[TXNO & 15], RXNO);
MsgLen = MsgLen - (19 + sizeof(void *));
@@ -1057,7 +1059,7 @@ void WritePacketLogThread(void * param)
// Open log file and write decoded packets
- T = time(NULL);
+ T = NOW;
tm = gmtime(&T);
if (LogDirectory[0] == 0)