issue command to exit quad mode, in quad mode

if not in quad mode, command is ignored; but without this,
the command is never accepted if you are in quad mode.

the idea is you use this to reset the chip when you don't
know what mode it's in.
This commit is contained in:
bunnie 2024-05-05 03:23:37 +08:00
parent 62d16bb77f
commit a0aeaae106

View file

@ -1193,6 +1193,7 @@ impl Spim {
if activate {
self.mem_send_cmd(0x35);
} else {
self.mode = SpimMode::Quad; // pre-assumes quad mode
self.mem_send_cmd(0xF5);
}
self.mem_cs(false);