Fixed out-by-one error in conf num.
authorplugd <plugd@thelambdalab.xyz>
Mon, 5 Aug 2024 12:54:28 +0000 (14:54 +0200)
committerplugd <plugd@thelambdalab.xyz>
Mon, 5 Aug 2024 12:54:28 +0000 (14:54 +0200)
obbs

diff --git a/obbs b/obbs
index 21d1982..eecda36 100755 (executable)
--- a/obbs
+++ b/obbs
@@ -159,7 +159,7 @@ function qwk.write_message_header_block(mf, obbs, conf_num, pkt_msg_num, msg)
    mf:write(space_pad(tostring(nblocks), 6)) -- number of blocks including header
 
    mf:write("\xe1") -- flag indicating message is "active" (not "to be killed")
-   mf:write(string.pack("I2",conf_num))
+   mf:write(string.pack("I2",conf_num-1))
    mf:write(string.pack("I2",pkt_msg_num))
    mf:write(" ") -- No network tag-line present
 end