Skip to content

Commit 577ba2a

Browse files
committed
Use new function into_readable_output_in_state
1 parent 6eb094f commit 577ba2a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

boards/rp-pico-w/examples/pico_w_blinky.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ unsafe fn forever<T>(r: &'_ T) -> &'static T {
103103
async fn run(spawner: Spawner, pins: rp_pico_w::Pins, state: &'static cyw43::State) -> ! {
104104
// These are implicitly used by the spi driver if they are in the correct mode
105105
let mut spi_cs: hal::gpio::dynpin::DynPin = pins.wl_cs.into();
106-
// TODO should be high from the beginning :-(
107-
spi_cs.into_readable_output();
108-
spi_cs.set_high().unwrap();
106+
spi_cs.into_readable_output_in_state(hal::gpio::PinState::High);
109107
spi_cs.into_push_pull_output();
110108
spi_cs.set_high().unwrap();
111109

0 commit comments

Comments
 (0)