From c7705fa5fabb981fddfbaaed46ec31986b77a99b Mon Sep 17 00:00:00 2001 From: pyrog Date: Fri, 28 Dec 2018 23:02:58 +0100 Subject: [PATCH] Fix bad address offset fix #146 --- src/pocsag/pocsag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocsag/pocsag.cpp b/src/pocsag/pocsag.cpp index 8f35083..f8e00c3 100644 --- a/src/pocsag/pocsag.cpp +++ b/src/pocsag/pocsag.cpp @@ -233,7 +233,7 @@ uint32_t encodeASCII(uint32_t initial_offset, char* str, uint32_t* out) { * words will be filled with the idle value. */ int addressOffset(int address) { - return (address & 0x3) * FRAME_SIZE; + return (address & 0x7) * FRAME_SIZE; } /**