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