aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--libmpio/src/smartmedia.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cb7a07c..6555fa9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-17 Markus Germeier <mager@tzi.de>
+ * libmpio/src/smartmedia.c (mpio_id2mem):
+ added non-standard SmartMedia chip ID, as reported by Andreas
+
2003-07-15 Markus Germeier <mager@tzi.de>
* libmpio/src/directory.c (mpio_dentry_get_real):
follow up fix for the broken internal FAT fix
diff --git a/libmpio/src/smartmedia.c b/libmpio/src/smartmedia.c
index 196480f..ab8daa5 100644
--- a/libmpio/src/smartmedia.c
+++ b/libmpio/src/smartmedia.c
@@ -1,5 +1,5 @@
/*
- * $Id: smartmedia.c,v 1.2 2003/04/30 07:17:01 germeier Exp $
+ * $Id: smartmedia.c,v 1.3 2003/07/17 16:18:01 germeier Exp $
*
* libmpio - a library for accessing Digit@lways MPIO players
* Copyright (C) 2002, 2003 Markus Germeier
@@ -71,6 +71,10 @@ mpio_id2mem(BYTE id)
case 0x79:
i=128;
break;
+ case 0xf1:
+ debug("Oops, non-standard chip ID, assuming chip is 128MB");
+ i=128;
+ break;
default:
debug("This should never happen (id2mem)!\n");
exit (1);