diff --git a/examples/eth.rs b/examples/eth.rs index 40cd43ab647..1447e437fc8 100644 --- a/examples/eth.rs +++ b/examples/eth.rs @@ -1,5 +1,3 @@ -use esp_idf_sys::{self as _}; // If using the `binstart` feature of `esp-idf-sys`, always keep this module imported - #[cfg(esp32)] use esp_idf_svc::{ eth::{BlockingEth, EspEth, EthDriver}, @@ -12,7 +10,7 @@ use log::info; #[cfg(esp32)] fn main() -> anyhow::Result<()> { - esp_idf_sys::link_patches(); + esp_idf_svc::sys::link_patches(); EspLogger::initialize_default(); let peripherals = Peripherals::take().unwrap(); diff --git a/examples/http_request.rs b/examples/http_request.rs index 06051173d30..0c72549ba1b 100644 --- a/examples/http_request.rs +++ b/examples/http_request.rs @@ -19,7 +19,7 @@ const SSID: &str = env!("WIFI_SSID"); const PASSWORD: &str = env!("WIFI_PASS"); fn main() -> anyhow::Result<()> { - esp_idf_sys::link_patches(); + esp_idf_svc::sys::link_patches(); EspLogger::initialize_default(); // Setup Wifi diff --git a/examples/nvs_get_set_c_style.rs b/examples/nvs_get_set_c_style.rs index 34f9de28239..18345078c96 100644 --- a/examples/nvs_get_set_c_style.rs +++ b/examples/nvs_get_set_c_style.rs @@ -14,7 +14,7 @@ use esp_idf_svc::nvs::*; use log::info; fn main() -> anyhow::Result<()> { - esp_idf_sys::link_patches(); + esp_idf_svc::sys::link_patches(); EspLogger::initialize_default(); let nvs_default_partition: EspNvsPartition = diff --git a/examples/tls.rs b/examples/tls.rs index 0b428dd28ff..5bd3a825691 100644 --- a/examples/tls.rs +++ b/examples/tls.rs @@ -50,7 +50,7 @@ A7sKPPcw7+uvTPyLNhBzPvOk -----END CERTIFICATE-----\0"; fn main() -> anyhow::Result<()> { - esp_idf_sys::link_patches(); + esp_idf_svc::sys::link_patches(); EspLogger::initialize_default(); let peripherals = Peripherals::take().unwrap(); diff --git a/examples/wifi.rs b/examples/wifi.rs index b85d7c15ae6..a56ce15d656 100644 --- a/examples/wifi.rs +++ b/examples/wifi.rs @@ -15,7 +15,7 @@ const SSID: &str = env!("WIFI_SSID"); const PASSWORD: &str = env!("WIFI_PASS"); fn main() -> anyhow::Result<()> { - esp_idf_sys::link_patches(); + esp_idf_svc::sys::link_patches(); EspLogger::initialize_default(); let peripherals = Peripherals::take().unwrap(); diff --git a/examples/wifi_async.rs b/examples/wifi_async.rs index 7bac1392e9c..bb90dee540d 100644 --- a/examples/wifi_async.rs +++ b/examples/wifi_async.rs @@ -18,7 +18,7 @@ const SSID: &str = env!("WIFI_SSID"); const PASSWORD: &str = env!("WIFI_PASS"); fn main() -> anyhow::Result<()> { - esp_idf_sys::link_patches(); + esp_idf_svc::sys::link_patches(); EspLogger::initialize_default(); let peripherals = Peripherals::take().unwrap();