diff --git a/short_bch_code_decoder.hh b/short_bch_code_decoder.hh index ac1dbb5..e55d66e 100644 --- a/short_bch_code_decoder.hh +++ b/short_bch_code_decoder.hh @@ -88,7 +88,7 @@ public: } } // Chase algorithm - if (1) { + if (K > 6) { const int num = 4; int worst[num] = { 0 }; for (int i = 0; i < N; ++i) { @@ -126,7 +126,7 @@ public: } } // maximum likelihood - if (0) { + if (K <= 6) { for (int msg = 0; msg < W; ++msg) { int enc = (msg << P) | par[msg]; if (enc == word)