We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f78db6f commit 4bd39a2Copy full SHA for 4bd39a2
examples/light_sleep.rs
@@ -7,7 +7,7 @@
7
#![allow(unexpected_cfgs)]
8
9
use core::time::Duration;
10
-#[cfg(any(esp32, esp32s2, esp32s3))]
+#[cfg(esp32)]
11
use esp_idf_hal::gpio::AnyIOPin;
12
use esp_idf_hal::gpio::Pull;
13
use esp_idf_hal::gpio::{self, PinDriver};
@@ -97,7 +97,7 @@ fn main() -> anyhow::Result<()> {
97
98
// UART definitions
99
let config = Config::new().baudrate(Hertz(115_200));
100
- #[cfg(any(esp32))]
+ #[cfg(esp32)]
101
let uart = UartDriver::new(
102
peripherals.uart0,
103
peripherals.pins.gpio4,
0 commit comments