Skip to content

Commit 3650a81

Browse files
committed
chore: remove esp32 compliation warnings
1 parent d0c186b commit 3650a81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use consts::{LOG_SEND_INTERVAL_MS, PRINT_HEAP_INTERVAL_MS};
1010
use embassy_executor::Spawner;
1111
use embassy_sync::signal::Signal;
1212
use embassy_time::{Instant, Timer};
13-
use embedded_hal::digital::OutputPin;
1413
use esp_backtrace as _;
1514
use esp_hal::gpio::Pin;
1615
use esp_hal::{
@@ -177,6 +176,8 @@ async fn main(spawner: Spawner) {
177176

178177
#[cfg(feature = "esp32c3")]
179178
{
179+
use embedded_hal::digital::OutputPin;
180+
180181
let mut bl_pin = adv_shift_reg.get_pin_mut(1, 1, false);
181182
_ = bl_pin.set_high();
182183
}

0 commit comments

Comments
 (0)