Skip to content

Commit

Permalink
Add patches
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Nov 14, 2023
1 parent 6d47b7d commit a1c617f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,18 @@ embedded-io-async = { version = "0.6.0" }

futures-util = { version = "0.3.28", default-features = false, features = ["portable-atomic"] } # need this to activate portable-atomic on futures-util's AtomicWaker even though we don't use it

# required until https://github.com/esp-rs/esp-hal/pull/891 is released
[patch.crates-io]
esp32c3-hal = { git = "https://github.com/esp-rs/esp-hal.git", rev = "8eddb9e737a1bfe0a36f90f54103e9167114813a" }
esp-hal-common = { git = "https://github.com/esp-rs/esp-hal.git", rev = "8eddb9e737a1bfe0a36f90f54103e9167114813a" }
esp32-hal = { git = "https://github.com/esp-rs/esp-hal.git", rev = "957b232" }
esp32c2-hal = { git = "https://github.com/esp-rs/esp-hal.git", rev = "957b232" }
esp32c3-hal = { git = "https://github.com/esp-rs/esp-hal.git", rev = "957b232" }
esp32c6-hal = { git = "https://github.com/esp-rs/esp-hal.git", rev = "957b232" }
esp32s2-hal = { git = "https://github.com/esp-rs/esp-hal.git", rev = "957b232" }
esp32s3-hal = { git = "https://github.com/esp-rs/esp-hal.git", rev = "957b232" }
esp-hal-common = { git = "https://github.com/esp-rs/esp-hal.git", rev = "957b232" }
embedded-svc = { git = "https://github.com/esp-rs/embedded-svc.git" }

embassy-sync = { git = "https://github.com/embassy-rs/embassy.git", rev = "7e5deae" }
embassy-time = { git = "https://github.com/embassy-rs/embassy.git", rev = "7e5deae" }
embassy-net-driver = { git = "https://github.com/embassy-rs/embassy.git", rev = "7e5deae" }

smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp.git", rev = "b57e2f9e70e82a13f31d5ea17e55232c11cc2b2d" }
2 changes: 1 addition & 1 deletion esp-wifi/src/wifi_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl<'a, MODE: WifiDeviceMode> WifiStack<'a, MODE> {
network_config: RefCell::new(ipv4::Configuration::Client(
ipv4::ClientConfiguration::DHCP(ipv4::DHCPClientSettings {
//FIXME: smoltcp currently doesn't have a way of giving a hostname through DHCP
hostname: Some("Espressif".into()),
hostname: Some(unwrap!("Espressif".try_into().ok())),
}),
)),
ip_info: RefCell::new(None),
Expand Down

0 comments on commit a1c617f

Please sign in to comment.