projects
/
gps-watch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed56d89
)
common: Add missing Write Enable command to Mx25L::program_page().
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Thu, 9 Jan 2020 11:42:53 +0000
(12:42 +0100)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Thu, 9 Jan 2020 20:00:04 +0000
(21:00 +0100)
Without a write enable, the flash memory doesn't take our data.
src/common/mx25l.rs
patch
|
blob
|
history
diff --git
a/src/common/mx25l.rs
b/src/common/mx25l.rs
index ecc42bacfe84b9228db2aea4c4eba02a894176b4..56c2d4489658e3f10b0f1354c0a70e4b435ebd4b 100644
(file)
--- 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);