summaryrefslogtreecommitdiff
path: root/Moncode.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-09-29 21:39:24 +0100
committerDave Hibberd <hibby@debian.org>2026-09-29 21:39:24 +0100
commit592e5967b8fcd79423802071319d0c646f2080df (patch)
tree0eef3a28cfe1a939caf9d61e419a56d79b3c38e3 /Moncode.c
parent23de03a0c8bf8a564cc0442f49d050ed11e372b8 (diff)
New upstream version 6.0.25.41+repackupstream/6.0.25.41+repack
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)