From 42817c4259a0a636da5215e93c8f16d4e3cab5d3 Mon Sep 17 00:00:00 2001 From: mahu-wm <127418871+mahu-wm@users.noreply.github.com> Date: Mon, 20 Jan 2025 10:55:21 +0100 Subject: [PATCH] Fix issue with enabled split-pxy feature The fixed error message is: error[E0425]: cannot find value `pin_name` in this scope --- embassy-stm32/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/build.rs b/embassy-stm32/build.rs index 4abbf8d69..78569f7da 100644 --- a/embassy-stm32/build.rs +++ b/embassy-stm32/build.rs @@ -1534,7 +1534,7 @@ fn main() { // This should avoid unintended side-effects as much as possible. #[cfg(feature = "_split-pins-enabled")] for split_feature in &split_features { - if split_feature.pin_name_without_c == pin_name { + if split_feature.pin_name_without_c == pin.name { pins_table.push(vec![ split_feature.pin_name_with_c.to_string(), p.name.to_string(),