diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/8b10b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/8b10b.c b/common/8b10b.c index 4908e1f..2f6e0f5 100644 --- a/common/8b10b.c +++ b/common/8b10b.c @@ -174,7 +174,7 @@ int xfr_8b10b_feed_bit(struct state_8b10b_dec *st, int bit) { st->bit_ctr = 1; for (int i=1; i<sizeof(k_sym_map)/sizeof(k_sym_map[0]); i++) { - if (pattern == k_sym_map[i]) + if (pattern == k_sym_map[i] || ((~pattern)&0x3ff) == k_sym_map[i]) return -i; } |