Skip to content

Commit d47521c

Browse files
committed
Clean up the lib.rs example some more getting rid of unnecessary verbose namespace specification.
1 parent b14b2de commit d47521c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

esp32-wroom-rp/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
//! &MODE_0,
121121
//! );
122122
//!
123-
//! let esp_pins = esp32_wroom_rp::gpio::EspControlPins {
123+
//! let esp_pins = EspControlPins {
124124
//! // CS on pin x (GPIO7)
125125
//! cs: pins.gpio7.into_mode::<hal::gpio::PushPullOutput>(),
126126
//! // GPIO0 on pin x (GPIO2)
@@ -130,11 +130,11 @@
130130
//! // ACK on pin x (GPIO10)
131131
//! ack: pins.gpio10.into_mode::<hal::gpio::FloatingInput>(),
132132
//! };
133-
//! let mut wifi = esp32_wroom_rp::wifi::Wifi::init(spi, esp_pins, &mut delay).unwrap();
133+
//! let mut wifi = Wifi::init(spi, esp_pins, &mut delay).unwrap();
134134
//! let firmware_version = wifi.firmware_version();
135135
//! defmt::info!("NINA firmware version: {:?}", firmware_version);
136136
//!
137-
//! defmt::info!("Entering main loop");
137+
//! // Infinitely sit in a main loop
138138
//! loop {}
139139
//! }
140140
//! ```

0 commit comments

Comments
 (0)