aboutsummaryrefslogtreecommitdiff
path: root/libmpio/src
diff options
context:
space:
mode:
authorgermeier <germeier>2003-07-17 16:18:01 +0000
committergermeier <germeier>2003-07-17 16:18:01 +0000
commit1ab9101a97f861480254d7bb11587835027d42fa (patch)
tree3102e0de8fb3c7a182220170e0db60504ac219de /libmpio/src
parenta51e2522aeab2605e0db7bead113e557d5dccd86 (diff)
downloadmpiosh-1ab9101a97f861480254d7bb11587835027d42fa.tar.gz
mpiosh-1ab9101a97f861480254d7bb11587835027d42fa.tar.bz2
mpiosh-1ab9101a97f861480254d7bb11587835027d42fa.zip
added non-standard SmartMedia chip ID, as reported by Andreas
Diffstat (limited to 'libmpio/src')
-rw-r--r--libmpio/src/smartmedia.c6
1 files changed, 5 insertions, 1 deletions
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);