From 6e89bfbff9f70bde83015ebe89008cdb822f0f78 Mon Sep 17 00:00:00 2001 From: cheetah Date: Wed, 3 Mar 2021 09:41:48 +0100 Subject: [PATCH] added custom function bits --- pocsagencode.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pocsagencode.go b/pocsagencode.go index 6dc379f..95e1f47 100644 --- a/pocsagencode.go +++ b/pocsagencode.go @@ -7,6 +7,7 @@ import ( // Message is a single POCSAG Alphanumeric message type Message struct { Addr uint32 + Function uint8 Content string IsNumeric bool } @@ -265,7 +266,7 @@ func appendContentNumeric(content string) (int, Burst) { func appendMessage(startpos int, msg *Message) (int, Burst) { // expand the parameters of the message addr := msg.Addr - function := byte(0) + function := byte(msg.Function) type_ := 'a' content := msg.Content