From b1ac8ccfd6c4eb6ba9d66d4214a925ded2213740 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Mon, 30 Sep 2024 17:13:22 +0100 Subject: [PATCH] Fix bug in P25 rate 1/2 data FEC. --- P25Trellis.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/P25Trellis.cpp b/P25Trellis.cpp index 5bdb65160..9b92ce70f 100644 --- a/P25Trellis.cpp +++ b/P25Trellis.cpp @@ -1,5 +1,5 @@ /* -* Copyright (C) 2016,2018 by Jonathan Naylor, G4KLX +* Copyright (C) 2016,2018,2024 by Jonathan Naylor, G4KLX * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -475,7 +475,7 @@ bool CP25Trellis::fixCode12(unsigned char* points, unsigned int failPos, unsigne unsigned int bestPos = 0U; unsigned int bestVal = 0U; - for (unsigned int i = 0U; i < 4U; i++) { + for (unsigned int i = 0U; i < 16U; i++) { points[failPos] = i; unsigned char dibits[49U];