Skip to content

Commit

Permalink
Honor ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ committed Jan 17, 2025
1 parent 880d774 commit 8ed46ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esp-hal/src/spi/master.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2619,13 +2619,14 @@ impl Driver {
) -> Result<(), Error> {
let reg_block = self.register_block();
match cmd_mode {
DataMode::Single => (),
DataMode::SingleTwoDataLines => (),
// FIXME: more detailed error - Only 1-bit commands are supported.
_ => return Err(Error::Unsupported),
}

match address_mode {
DataMode::SingleTwoDataLines => {
DataMode::Single | DataMode::SingleTwoDataLines => {
reg_block.ctrl().modify(|_, w| {
w.fread_dio().clear_bit();
w.fread_qio().clear_bit();
Expand Down

0 comments on commit 8ed46ad

Please sign in to comment.