diff options
| author | HybridChild <[email protected]> | 2025-08-23 10:53:22 +0200 |
|---|---|---|
| committer | HybridChild <[email protected]> | 2025-08-23 10:53:22 +0200 |
| commit | 524db5a935e506036c282e3c0dfa9abc807ac7ee (patch) | |
| tree | c71438fb14ad5d9555db7c28c476aab32d25244f /examples/stm32f4/src/bin/i2c_slave_async.rs | |
| parent | 944ac0bf138ab78f602627fae97891024c8fd082 (diff) | |
Fix formatting in examples
Diffstat (limited to 'examples/stm32f4/src/bin/i2c_slave_async.rs')
| -rw-r--r-- | examples/stm32f4/src/bin/i2c_slave_async.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/stm32f4/src/bin/i2c_slave_async.rs b/examples/stm32f4/src/bin/i2c_slave_async.rs index c0719af5e..1c48f1ac7 100644 --- a/examples/stm32f4/src/bin/i2c_slave_async.rs +++ b/examples/stm32f4/src/bin/i2c_slave_async.rs | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | #![no_main] | 8 | #![no_main] |
| 9 | 9 | ||
| 10 | use defmt::{error, info}; | 10 | use defmt::{error, info}; |
| 11 | use defmt_rtt as _; | 11 | use {defmt_rtt as _, panic_probe as _}; |
| 12 | use embassy_executor::Spawner; | 12 | use embassy_executor::Spawner; |
| 13 | use embassy_stm32::i2c::{self, Address, I2c, SlaveAddrConfig, SlaveCommand, SlaveCommandKind}; | 13 | use embassy_stm32::i2c::{self, Address, I2c, SlaveAddrConfig, SlaveCommand, SlaveCommandKind}; |
| 14 | use embassy_stm32::time::Hertz; | 14 | use embassy_stm32::time::Hertz; |
| @@ -16,7 +16,6 @@ use embassy_stm32::{bind_interrupts, peripherals}; | |||
| 16 | use embassy_sync::blocking_mutex::raw::ThreadModeRawMutex; | 16 | use embassy_sync::blocking_mutex::raw::ThreadModeRawMutex; |
| 17 | use embassy_sync::mutex::Mutex; | 17 | use embassy_sync::mutex::Mutex; |
| 18 | use embassy_time::{Duration, Timer}; | 18 | use embassy_time::{Duration, Timer}; |
| 19 | use panic_probe as _; | ||
| 20 | 19 | ||
| 21 | pub const I2C_SLAVE_ADDR: u8 = 0x42; | 20 | pub const I2C_SLAVE_ADDR: u8 = 0x42; |
| 22 | pub const BUFFER_SIZE: usize = 8; | 21 | pub const BUFFER_SIZE: usize = 8; |
