Updating dependencies
This commit is contained in:
parent
8c616cebec
commit
331e21b00a
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -707,7 +707,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "smoltcp-nal"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/quartiq/smoltcp-nal.git?branch=feature/dhcp-support#b3de37939140d04a64c79afddb97b81ff49e1f23"
|
||||
source = "git+https://github.com/quartiq/smoltcp-nal.git?branch=feature/dhcp-support#79fd03e3d051402c71116839606e5b3294372c98"
|
||||
dependencies = [
|
||||
"embedded-nal",
|
||||
"heapless 0.6.1",
|
||||
|
@ -148,7 +148,7 @@ const APP: () = {
|
||||
Ok(updated) => !updated,
|
||||
Err(err) => {
|
||||
log::info!("Network error: {:?}", err);
|
||||
true
|
||||
false
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -217,13 +217,22 @@ const APP: () = {
|
||||
}
|
||||
});
|
||||
|
||||
if c.resources
|
||||
match c
|
||||
.resources
|
||||
.mqtt_interface
|
||||
.lock(|interface| interface.update().unwrap())
|
||||
.lock(|interface| interface.update())
|
||||
{
|
||||
c.spawn.settings_update().unwrap()
|
||||
} else if sleep {
|
||||
cortex_m::asm::wfi();
|
||||
Ok(update) => {
|
||||
if update {
|
||||
c.spawn.settings_update().unwrap();
|
||||
} else if sleep {
|
||||
cortex_m::asm::wfi();
|
||||
}
|
||||
}
|
||||
Err(miniconf::MqttError::Network(
|
||||
smoltcp_nal::NetworkError::NoIpAddress,
|
||||
)) => {}
|
||||
Err(error) => log::info!("Unexpected error: {:?}", error),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user