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_blocking.rs | |
| parent | 524db5a935e506036c282e3c0dfa9abc807ac7ee (diff) | |
Fix formatting in examples
Diffstat (limited to 'examples/stm32f4/src/bin/i2c_slave_blocking.rs')
| -rw-r--r-- | examples/stm32f4/src/bin/i2c_slave_blocking.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f4/src/bin/i2c_slave_blocking.rs b/examples/stm32f4/src/bin/i2c_slave_blocking.rs index a6f4da747..a62087a29 100644 --- a/examples/stm32f4/src/bin/i2c_slave_blocking.rs +++ b/examples/stm32f4/src/bin/i2c_slave_blocking.rs | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | #![no_main] | 7 | #![no_main] |
| 8 | 8 | ||
| 9 | use defmt::{error, info}; | 9 | use defmt::{error, info}; |
| 10 | use {defmt_rtt as _, panic_probe as _}; | ||
| 11 | use embassy_executor::Spawner; | 10 | use embassy_executor::Spawner; |
| 12 | use embassy_stm32::i2c::{self, Address, I2c, SlaveAddrConfig, SlaveCommand, SlaveCommandKind}; | 11 | use embassy_stm32::i2c::{self, Address, I2c, SlaveAddrConfig, SlaveCommand, SlaveCommandKind}; |
| 13 | use embassy_stm32::time::Hertz; | 12 | use embassy_stm32::time::Hertz; |
| @@ -15,6 +14,7 @@ use embassy_stm32::{bind_interrupts, peripherals}; | |||
| 15 | use embassy_sync::blocking_mutex::raw::ThreadModeRawMutex; | 14 | use embassy_sync::blocking_mutex::raw::ThreadModeRawMutex; |
| 16 | use embassy_sync::mutex::Mutex; | 15 | use embassy_sync::mutex::Mutex; |
| 17 | use embassy_time::{Duration, Timer}; | 16 | use embassy_time::{Duration, Timer}; |
| 17 | use {defmt_rtt as _, panic_probe as _}; | ||
| 18 | 18 | ||
| 19 | pub const I2C_SLAVE_ADDR: u8 = 0x42; | 19 | pub const I2C_SLAVE_ADDR: u8 = 0x42; |
| 20 | pub const BUFFER_SIZE: usize = 8; | 20 | pub const BUFFER_SIZE: usize = 8; |
