common: Add missing Write Enable command to Mx25L::program_page().
[gps-watch.git] / src / common / mx25l.rs
index ecc42bacfe84b9228db2aea4c4eba02a894176b4..56c2d4489658e3f10b0f1354c0a70e4b435ebd4b 100644 (file)
@@ -115,6 +115,8 @@ impl Mx25l {
             return Ok(());
         }
 
+        self.write_enable();
+
         self.with_selected(|| {
             spi::tx8(spi::SPI0, Command::PP as u8);