as3525: fix capacity sanity check
commit7ff877ff32e2fff3cb46c0f159e1d8818747859f
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Sat, 15 May 2010 12:01:53 +0000 (15 12:01 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Sat, 15 May 2010 12:01:53 +0000 (15 12:01 +0000)
tree87d9c02bf2d6ad95dd94b610d95e3c890caf5a67
parente1e4a1ad4540619e9eddcf5ab17892c7a39a90fe
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