From: plugd Date: Mon, 5 Aug 2024 12:54:28 +0000 (+0200) Subject: Fixed out-by-one error in conf num. X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=8302d1b5882fff0e37bbbf913ab068ba22ed9788;p=qwikboard.git Fixed out-by-one error in conf num. --- diff --git a/obbs b/obbs index 21d1982..eecda36 100755 --- 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