as3525: fix capacity sanity check
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Sat, 15 May 2010 12:01:53 +0000 (12:01 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Sat, 15 May 2010 12:01:53 +0000 (12:01 +0000)
commit2b6334f5de54c1c7dab4da241f233a466e959b3e
tree87d9c02bf2d6ad95dd94b610d95e3c890caf5a67
parent152e4b9985e15d6148ce26e533a0950656366efc
as3525: fix capacity sanity check

adjust logical starting sector to physical starting sector after the check
number of blocks is already adjusted from physical to logical
don't panic anymore when accessing the last part of storage

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26050 a1c6a512-1295-4272-9138-f99709370657
firmware/target/arm/as3525/sd-as3525.c
firmware/target/arm/as3525/sd-as3525v2.c