Skip to content

Commit

Permalink
Change sys imports
Browse files Browse the repository at this point in the history
  • Loading branch information
torkleyy committed Aug 31, 2023
1 parent 64e00f9 commit 4a8a80c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions examples/eth.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion examples/http_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/nvs_get_set_c_style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<NvsDefault> =
Expand Down
2 changes: 1 addition & 1 deletion examples/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion examples/wifi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion examples/wifi_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4a8a80c

Please sign in to comment.