X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fcommon%2Fmx25l.rs;h=56c2d4489658e3f10b0f1354c0a70e4b435ebd4b;hb=c4d55664636e0df02fa19c079c4d9367e2d25917;hp=ecc42bacfe84b9228db2aea4c4eba02a894176b4;hpb=80382da44362f47107e5aab12a7e56f4cc011926;p=gps-watch.git diff --git a/src/common/mx25l.rs b/src/common/mx25l.rs index ecc42ba..56c2d44 100644 --- a/src/common/mx25l.rs +++ b/src/common/mx25l.rs @@ -115,6 +115,8 @@ impl Mx25l { return Ok(()); } + self.write_enable(); + self.with_selected(|| { spi::tx8(spi::SPI0, Command::PP as u8);