aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32wle5/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32wle5/src')
-rw-r--r--examples/stm32wle5/src/bin/i2c.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/stm32wle5/src/bin/i2c.rs b/examples/stm32wle5/src/bin/i2c.rs
index bd94c061f..8e7a6e2d8 100644
--- a/examples/stm32wle5/src/bin/i2c.rs
+++ b/examples/stm32wle5/src/bin/i2c.rs
@@ -65,11 +65,10 @@ async fn async_main(_spawner: Spawner) {
65 config 65 config
66 }); 66 });
67 67
68 let _device_busy = low_power::DeviceBusy::new_stop2();
69 loop { 68 loop {
70 let mut buffer = [0; 2]; 69 let mut buffer = [0; 2];
71 // read the temperature register of the onboard lm75 70 // read the temperature register of the onboard lm75
72 match i2c.write_read(0x48, &[0x00], &mut buffer).await { 71 match i2c.read(0x48, &mut buffer).await {
73 Ok(_) => info!("--> {:?}", buffer), 72 Ok(_) => info!("--> {:?}", buffer),
74 Err(e) => info!("--> Error: {:?}", e), 73 Err(e) => info!("--> Error: {:?}", e),
75 } 74 }