projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'branch-1.9' into debian
[fw/altos]
/
src
/
kernel
/
ao_fec_tx.c
diff --git
a/src/kernel/ao_fec_tx.c
b/src/kernel/ao_fec_tx.c
index 8c0e7db4f7e51c4f6e7f92d092eacb3c6faa6713..209581b85efd28d2ca193c6e7c6e65686c6dbd25 100644
(file)
--- a/
src/kernel/ao_fec_tx.c
+++ b/
src/kernel/ao_fec_tx.c
@@
-74,7
+74,7
@@
ao_fec_prepare(const uint8_t *in, uint8_t len, uint8_t *extra)
extra[i++] = (uint8_t) crc;
/* Append FEC -- 1 byte if odd, two bytes if even */
- num_fec = 2 - (
i
& 1);
+ num_fec = 2 - (
len
& 1);
while (num_fec--)
extra[i++] = AO_FEC_TRELLIS_TERMINATOR;
return i;