Skip to content

Commit

Permalink
Unwrap config result in ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Nov 5, 2024
1 parent b9762e8 commit 1330959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp-hal/src/spi/master.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ where
PeripheralClockControl::reset(this.spi.peripheral());

this.driver().init();
this.apply_config(&config);
unwarp!(this.apply_config(&config)); // FIXME: update based on the resolution of https://github.com/esp-rs/esp-hal/issues/2416

let this = this
.with_mosi(NoPin)
Expand Down

0 comments on commit 1330959

Please sign in to comment.