From 3a5afefa2a788b242bfeb4dce330202e24a1ca77 Mon Sep 17 00:00:00 2001 From: germeier Date: Mon, 9 Sep 2002 13:29:52 +0000 Subject: fixed cluster to block mapping with 32 MB SmartMedia cards added debug messages in case of ECC errors fixed some errors if no SM card is inserted (this time for real!) --- libmpio/ecc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libmpio/ecc.c') diff --git a/libmpio/ecc.c b/libmpio/ecc.c index e7429a5..5175a32 100644 --- a/libmpio/ecc.c +++ b/libmpio/ecc.c @@ -1,6 +1,6 @@ /* * - * $Id: ecc.c,v 1.1 2002/08/28 16:10:51 salmoon Exp $ + * $Id: ecc.c,v 1.2 2002/09/09 13:29:52 germeier Exp $ * * Library for USB MPIO-* * @@ -193,6 +193,8 @@ mpio_ecc_256_check(BYTE *data, BYTE *ecc) debugn(2, "ECC Correction code not in place yet, Sorry\n"); debugn(3, "got ECC: %2x %2x %2x\n", ecc[0], ecc[1], ecc[2]); debugn(3, "calc. ECC: %2x %2x %2x\n", own_ecc[0], own_ecc[1], own_ecc[2]); + + return 1; } return 0; -- cgit v1.2.3