From 13309596e902d6742fd4b4c02ed977abeb836b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Tue, 5 Nov 2024 18:27:53 +0100 Subject: [PATCH] Unwrap config result in ctor --- esp-hal/src/spi/master.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp-hal/src/spi/master.rs b/esp-hal/src/spi/master.rs index ff045d7d702..9c6d778dace 100644 --- a/esp-hal/src/spi/master.rs +++ b/esp-hal/src/spi/master.rs @@ -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)