aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32l4/src/bin/spe_adin1110_http_server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32l4/src/bin/spe_adin1110_http_server.rs')
-rw-r--r--examples/stm32l4/src/bin/spe_adin1110_http_server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32l4/src/bin/spe_adin1110_http_server.rs b/examples/stm32l4/src/bin/spe_adin1110_http_server.rs
index 7193d1f1f..e2ac22d09 100644
--- a/examples/stm32l4/src/bin/spe_adin1110_http_server.rs
+++ b/examples/stm32l4/src/bin/spe_adin1110_http_server.rs
@@ -306,7 +306,7 @@ async fn temp_task(temp_dev_i2c: TempSensI2c, mut led: Output<'static, periphera
306 306
307 loop { 307 loop {
308 led.set_low(); 308 led.set_low();
309 match select(temp_sens.read_temp(), Timer::after(Duration::from_millis(500))).await { 309 match select(temp_sens.read_temp(), Timer::after_millis(500)).await {
310 Either::First(i2c_ret) => match i2c_ret { 310 Either::First(i2c_ret) => match i2c_ret {
311 Ok(value) => { 311 Ok(value) => {
312 led.set_high(); 312 led.set_high();
@@ -424,7 +424,7 @@ where
424 // Start: One shot 424 // Start: One shot
425 let cfg = 0b01 << 5; 425 let cfg = 0b01 << 5;
426 self.write_cfg(cfg).await?; 426 self.write_cfg(cfg).await?;
427 Timer::after(Duration::from_millis(250)).await; 427 Timer::after_millis(250).await;
428 self.bus 428 self.bus
429 .write_read(self.addr, &[Registers::Temp_MSB as u8], &mut buffer) 429 .write_read(self.addr, &[Registers::Temp_MSB as u8], &mut buffer)
430 .await 430 .await