Skip to content

Commit 4bd39a2

Browse files
committed
unused import under cfg flag
1 parent f78db6f commit 4bd39a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/light_sleep.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#![allow(unexpected_cfgs)]
88

99
use core::time::Duration;
10-
#[cfg(any(esp32, esp32s2, esp32s3))]
10+
#[cfg(esp32)]
1111
use esp_idf_hal::gpio::AnyIOPin;
1212
use esp_idf_hal::gpio::Pull;
1313
use esp_idf_hal::gpio::{self, PinDriver};
@@ -97,7 +97,7 @@ fn main() -> anyhow::Result<()> {
9797

9898
// UART definitions
9999
let config = Config::new().baudrate(Hertz(115_200));
100-
#[cfg(any(esp32))]
100+
#[cfg(esp32)]
101101
let uart = UartDriver::new(
102102
peripherals.uart0,
103103
peripherals.pins.gpio4,

0 commit comments

Comments
 (0)