RS41: BCH/Reed-Solomon

dump
Zilog80 2016-12-19 01:21:18 +01:00
rodzic b14c733ee3
commit 39c1eb0fff
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -906,9 +906,6 @@ int rs41_ecc(int msglen) {
errors1 = rs_decode(cw1, err_pos1, err_val1);
errors2 = rs_decode(cw2, err_pos2, err_val2);
if (errors1 > 0 || errors2 > 0) {
ret = errors1+errors2;
}
// check CRC32
// CRC32 OK:
@ -925,6 +922,7 @@ int rs41_ecc(int msglen) {
frame[cfg_rs41.msgpos+2*i] = cw1[rs_R+i];
}
ret = errors1 + errors2;
if (errors1 < 0 || errors2 < 0) ret = -1;