Updating dependencies
This commit is contained in:
parent
8c616cebec
commit
331e21b00a
|
@ -707,7 +707,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "smoltcp-nal"
|
name = "smoltcp-nal"
|
||||||
version = "0.1.0"
|
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 = [
|
dependencies = [
|
||||||
"embedded-nal",
|
"embedded-nal",
|
||||||
"heapless 0.6.1",
|
"heapless 0.6.1",
|
||||||
|
|
|
@ -148,7 +148,7 @@ const APP: () = {
|
||||||
Ok(updated) => !updated,
|
Ok(updated) => !updated,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
log::info!("Network error: {:?}", err);
|
log::info!("Network error: {:?}", err);
|
||||||
true
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -217,13 +217,22 @@ const APP: () = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if c.resources
|
match c
|
||||||
|
.resources
|
||||||
.mqtt_interface
|
.mqtt_interface
|
||||||
.lock(|interface| interface.update().unwrap())
|
.lock(|interface| interface.update())
|
||||||
{
|
{
|
||||||
c.spawn.settings_update().unwrap()
|
Ok(update) => {
|
||||||
} else if sleep {
|
if update {
|
||||||
cortex_m::asm::wfi();
|
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