Skip to content

Commit 8228e23

Browse files
committed
fixed all clippy warnings
1 parent 13823bb commit 8228e23

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/deep_sleep.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ use core::time::Duration;
1717
// use esp_idf_hal::gpio;
1818
#[cfg(any(esp32c2, esp32c3))]
1919
use esp_idf_hal::gpio::Level;
20-
#[cfg(any(esp32, esp32s2, esp32s3))]
20+
#[cfg(any(esp32, esp32s2, esp32s3, esp32c2, esp32c3))]
2121
use esp_idf_hal::gpio::{PinDriver, Pull};
2222
#[cfg(any(esp32, esp32s2, esp32s3, esp32c2, esp32c3))]
2323
use esp_idf_hal::peripherals::Peripherals;
2424
use esp_idf_hal::reset::{ResetReason, WakeupReason};
25-
#[cfg(any(esp32, esp32s2, esp32s3))]
25+
#[cfg(any(esp32, esp32s2, esp32s3, esp32c2, esp32c3))]
2626
use esp_idf_hal::sleep::*;
2727

2828
fn print_wakeup_result() {

examples/light_sleep.rs

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

99
use core::time::Duration;
10-
#[cfg(any(esp32, esp32s2, esp32s3))]
10+
#[cfg(any(esp32, esp32s2, esp32s3, esp32c2, esp32c3))]
1111
use esp_idf_hal::gpio;
1212
#[cfg(esp32)]
1313
use esp_idf_hal::gpio::AnyIOPin;
14-
#[cfg(any(esp32, esp32s2, esp32s3))]
14+
#[cfg(any(esp32, esp32s2, esp32s3, esp32c2, esp32c3))]
1515
use esp_idf_hal::gpio::{PinDriver, Pull};
1616
#[cfg(any(esp32, esp32s2, esp32s3, esp32c2, esp32c3))]
1717
use esp_idf_hal::peripherals::Peripherals;
1818
use esp_idf_hal::reset::WakeupReason;
1919
use esp_idf_hal::sleep::*;
2020
#[cfg(any(esp32, esp32s2, esp32s3, esp32c2, esp32c3))]
2121
use esp_idf_hal::uart::config::Config;
22-
#[cfg(any(esp32, esp32s2, esp32s3))]
22+
#[cfg(any(esp32, esp32s2, esp32s3, esp32c2, esp32c3))]
2323
use esp_idf_hal::uart::UartDriver;
2424
#[cfg(any(esp32, esp32s2, esp32s3, esp32c2, esp32c3))]
2525
use esp_idf_hal::units::Hertz;
2626
use std::thread;
2727
use std::time::Instant;
2828

29-
#[cfg(any(esp32, esp32s2, esp32s3))]
29+
#[cfg(any(esp32, esp32s2, esp32s3, esp32c2, esp32c3))]
3030
use crate::gpio::Level;
3131

3232
fn print_wakeup_result(time_before: Instant) {

0 commit comments

Comments
 (0)