added custom function bits

master
cheetah 4 years ago
parent 9bb56dc6c8
commit 6e89bfbff9

@ -7,6 +7,7 @@ import (
// Message is a single POCSAG Alphanumeric message // Message is a single POCSAG Alphanumeric message
type Message struct { type Message struct {
Addr uint32 Addr uint32
Function uint8
Content string Content string
IsNumeric bool IsNumeric bool
} }
@ -265,7 +266,7 @@ func appendContentNumeric(content string) (int, Burst) {
func appendMessage(startpos int, msg *Message) (int, Burst) { func appendMessage(startpos int, msg *Message) (int, Burst) {
// expand the parameters of the message // expand the parameters of the message
addr := msg.Addr addr := msg.Addr
function := byte(0) function := byte(msg.Function)
type_ := 'a' type_ := 'a'
content := msg.Content content := msg.Content

Loading…
Cancel
Save