From: Keith Packard Date: Sat, 23 Jun 2012 09:23:08 +0000 (-0700) Subject: altos: fix comment about decoding last byte of FEC data X-Git-Tag: 1.0.9.6~42 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=566a0c277de01963922cabc80db8ec3a129923bd altos: fix comment about decoding last byte of FEC data There aren't *any* forward bits to use when decoding the last byte. Signed-off-by: Keith Packard --- diff --git a/src/core/ao_viterbi.c b/src/core/ao_viterbi.c index 1b1784b3..17464cd1 100644 --- a/src/core/ao_viterbi.c +++ b/src/core/ao_viterbi.c @@ -120,9 +120,9 @@ ao_fec_decode(uint8_t *in, uint16_t len, uint8_t *out) p = n; /* A loop is needed to handle the last output byte. It - * won't have a full NUM_HIST bits of future data to - * perform full error correction, but we might as well - * give the best possible answer anyways. + * won't have any bits of future data to perform full + * error correction, but we might as well give the + * best possible answer anyways. */ while ((b - o) >= (8 + NUM_HIST) || (i + 2 >= len && b > o)) {