From: Tilman Sauerbeck Date: Thu, 9 Jan 2020 11:42:53 +0000 (+0100) Subject: common: Add missing Write Enable command to Mx25L::program_page(). X-Git-Url: http://git.code-monkey.de/?p=gps-watch.git;a=commitdiff_plain;h=934532a7d2b013015455ccfeb6bb2845948626ce common: Add missing Write Enable command to Mx25L::program_page(). Without a write enable, the flash memory doesn't take our data. --- 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);