diff options
author | charles <charles> | 2005-03-16 04:00:36 +0000 |
---|---|---|
committer | charles <charles> | 2005-03-16 04:00:36 +0000 |
commit | dccf947cb075996a9f2d833c55760af7d5e42be9 (patch) | |
tree | c9da24b23095c58e4b023ef7be1b525fc80d52ff /yaffs_ecc.c | |
parent | c777091a82bbe6750c37b8425678ac7741e0a4cb (diff) |
Add patches from Nick Banes for compatability
Diffstat (limited to 'yaffs_ecc.c')
-rw-r--r-- | yaffs_ecc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/yaffs_ecc.c b/yaffs_ecc.c index 8eaffa0..820041a 100644 --- a/yaffs_ecc.c +++ b/yaffs_ecc.c @@ -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. -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" @@ -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; +#if 0 // NCB t = d0; d0 = d1; d1 = t; +#else + t = cDelta; + cDelta = lDelta; + lDelta = t; +#endif #endif bit = 0; |