Fixed error in NAND ecc4 correction

This commit is contained in:
Stefan Achatz 2021-05-04 10:20:06 +02:00
parent d3ce7f91bf
commit 9a84d83e19

View file

@ -166,7 +166,7 @@ static void NANDChangeReadColumn(unsigned int column)
// Returns 1 if ok, 0 if uncorrectable
static int NANDECC4Correct(uint8_t *data)
{
int count = (*NFECCERR0 >> 26) & 0x03;
int count = (*NFECCERR0 >> 26) & 0x07;
if (count == 0) {
return 1;