diff --git a/esp-wifi/build.rs b/esp-wifi/build.rs index 7d5f5473889..61080eeebd4 100644 --- a/esp-wifi/build.rs +++ b/esp-wifi/build.rs @@ -95,7 +95,7 @@ fn main() -> Result<(), String> { .next() .unwrap(); - let mut version = version.split('.'); + let mut version = version.trim_start_matches('v').split('.'); let major = version.next().unwrap().parse::().unwrap(); let minor = version.next().unwrap().parse::().unwrap();