From 1a40e3419bb86f17e1a8bf93cb115c9df297b3ba Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Tue, 18 Feb 2025 14:05:43 +0200 Subject: [PATCH] migration: Fix example to use correct method `.with_pull(...)` (#3145) --- esp-hal/MIGRATING-0.23.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp-hal/MIGRATING-0.23.md b/esp-hal/MIGRATING-0.23.md index 5b6148a95..bbe993fa7 100644 --- a/esp-hal/MIGRATING-0.23.md +++ b/esp-hal/MIGRATING-0.23.md @@ -244,7 +244,7 @@ GPIO drivers now take configuration structs. ```diff - Input::new(peripherals.GPIO0, Pull::Up); -+ Input::new(peripherals.GPIO0, InputConfig::default().with_pull_direction(Pull::Up)); ++ Input::new(peripherals.GPIO0, InputConfig::default().with_pull(Pull::Up)); - Output::new(peripherals.GPIO0, Level::Low); + Output::new(peripherals.GPIO0, Level::Low, OutputConfig::default());