*** empty log message ***
[yaffs2.git] / yaffs_ecc.c
index 8eaffa012941d08f32e219d120c1b7f007b3df68..820041a2b633deeaa60029f1f43668f6fcd8a815 100644 (file)
@@ -29,7 +29,7 @@
 // Bit 0 of each entry indicates whether the entry has an odd or even parity, and therefore
 // this bytes influence on the line parity.
 
 // Bit 0 of each entry indicates whether the entry has an odd or even parity, and therefore
 // this bytes influence on the line parity.
 
-const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.1 2004-11-03 08:14:07 charles Exp $";
+const char *yaffs_ecc_c_version = "$Id: yaffs_ecc.c,v 1.2 2005-03-16 04:00:36 charles Exp $";
 
 
 #include "yaffs_ecc.h"
 
 
 #include "yaffs_ecc.h"
@@ -265,9 +265,15 @@ int yaffs_ECCCorrectOther(unsigned char *data, unsigned nBytes, yaffs_ECCOther *
                // swap the bytes to correct for the wrong order
                unsigned char t;
                
                // swap the bytes to correct for the wrong order
                unsigned char t;
                
+#if 0 // NCB
                t = d0;
                d0 = d1;
                d1 = t;
                t = d0;
                d0 = d1;
                d1 = t;
+#else
+               t = cDelta;
+               cDelta = lDelta;
+               lDelta = t;
+#endif
 #endif
                
                bit = 0;
 #endif
                
                bit = 0;