X-Git-Url: http://git.code-monkey.de/?p=gps-watch.git;a=blobdiff_plain;f=src%2Fcommon%2Fmx25l.rs;h=ecc42bacfe84b9228db2aea4c4eba02a894176b4;hp=ea2b8c1667372fe290f8c041d27566dfc9249d58;hb=80382da44362f47107e5aab12a7e56f4cc011926;hpb=aa0f0d612a03799423e87e9137765ecb90146f48 diff --git a/src/common/mx25l.rs b/src/common/mx25l.rs index ea2b8c1..ecc42ba 100644 --- a/src/common/mx25l.rs +++ b/src/common/mx25l.rs @@ -157,6 +157,10 @@ impl Mx25l { } impl Storage for Mx25l { + fn size(&self) -> usize { + 2 << 20 + } + fn read(&self, address: usize, buffer: &mut [u8]) { self.with_selected(|| { spi::tx8(spi::SPI0, Command::READ as u8);