mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 14:53:03 +00:00
Merge pull request #1805 from embassy-rs/update-nightly-6
Update Nightly.
This commit is contained in:
commit
2687008242
@ -35,9 +35,9 @@ macro_rules! ioctl {
|
|||||||
};
|
};
|
||||||
$self.ioctl(&mut msg).await?;
|
$self.ioctl(&mut msg).await?;
|
||||||
let Some(proto::CtrlMsgPayload::$resp_variant($resp)) = msg.payload else {
|
let Some(proto::CtrlMsgPayload::$resp_variant($resp)) = msg.payload else {
|
||||||
warn!("unexpected response variant");
|
warn!("unexpected response variant");
|
||||||
return Err(Error::Internal);
|
return Err(Error::Internal);
|
||||||
};
|
};
|
||||||
if $resp.resp != 0 {
|
if $resp.resp != 0 {
|
||||||
return Err(Error::Failed($resp.resp));
|
return Err(Error::Failed($resp.resp));
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Before upgrading check that everything is available on all tier1 targets here:
|
# Before upgrading check that everything is available on all tier1 targets here:
|
||||||
# https://rust-lang.github.io/rustup-components-history
|
# https://rust-lang.github.io/rustup-components-history
|
||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "nightly-2023-06-28"
|
channel = "nightly-2023-08-19"
|
||||||
components = [ "rust-src", "rustfmt", "llvm-tools-preview" ]
|
components = [ "rust-src", "rustfmt", "llvm-tools-preview" ]
|
||||||
targets = [
|
targets = [
|
||||||
"thumbv7em-none-eabi",
|
"thumbv7em-none-eabi",
|
||||||
|
@ -80,8 +80,8 @@ async fn main(_spawner: Spawner) {
|
|||||||
const MIN_LATENCY: Duration = Duration::from_micros(50);
|
const MIN_LATENCY: Duration = Duration::from_micros(50);
|
||||||
const MAX_LATENCY: Duration = Duration::from_micros(150);
|
const MAX_LATENCY: Duration = Duration::from_micros(150);
|
||||||
assert!(
|
assert!(
|
||||||
MIN_LATENCY < latency && latency < MAX_LATENCY,
|
MIN_LATENCY <= latency && latency <= MAX_LATENCY,
|
||||||
"{} < {} < {}",
|
"{} <= {} <= {}",
|
||||||
MIN_LATENCY,
|
MIN_LATENCY,
|
||||||
latency,
|
latency,
|
||||||
MAX_LATENCY
|
MAX_LATENCY
|
||||||
|
Loading…
Reference in New Issue
Block a user