cargo fmt
This commit is contained in:
parent
e6df69fe04
commit
3ebbb554cd
|
@ -339,7 +339,7 @@ pub enum Packet {
|
||||||
destination: u8,
|
destination: u8,
|
||||||
last: bool,
|
last: bool,
|
||||||
length: u16,
|
length: u16,
|
||||||
data: [u8; MASTER_PAYLOAD_MAX_SIZE]
|
data: [u8; MASTER_PAYLOAD_MAX_SIZE],
|
||||||
},
|
},
|
||||||
CoreMgmtDropLinkAck {
|
CoreMgmtDropLinkAck {
|
||||||
destination: u8,
|
destination: u8,
|
||||||
|
@ -1186,7 +1186,10 @@ impl Packet {
|
||||||
writer.write_u8(0xda)?;
|
writer.write_u8(0xda)?;
|
||||||
writer.write_u8(destination)?;
|
writer.write_u8(destination)?;
|
||||||
}
|
}
|
||||||
Packet::CoreMgmtFlashRequest { destination, payload_length } => {
|
Packet::CoreMgmtFlashRequest {
|
||||||
|
destination,
|
||||||
|
payload_length,
|
||||||
|
} => {
|
||||||
writer.write_u8(0xdb)?;
|
writer.write_u8(0xdb)?;
|
||||||
writer.write_u8(destination)?;
|
writer.write_u8(destination)?;
|
||||||
writer.write_u32(payload_length)?;
|
writer.write_u32(payload_length)?;
|
||||||
|
|
|
@ -649,7 +649,8 @@ mod remote_coremgmt {
|
||||||
payload_length: image.len() as u32,
|
payload_length: image.len() as u32,
|
||||||
},
|
},
|
||||||
timer,
|
timer,
|
||||||
).await;
|
)
|
||||||
|
.await;
|
||||||
|
|
||||||
match alloc_reply {
|
match alloc_reply {
|
||||||
Ok(Packet::CoreMgmtReply { succeeded: true }) => Ok(()),
|
Ok(Packet::CoreMgmtReply { succeeded: true }) => Ok(()),
|
||||||
|
|
|
@ -1281,7 +1281,7 @@ fn process_aux_packet(
|
||||||
}
|
}
|
||||||
drtioaux::Packet::CoreMgmtFlashRequest {
|
drtioaux::Packet::CoreMgmtFlashRequest {
|
||||||
destination: _destination,
|
destination: _destination,
|
||||||
payload_length
|
payload_length,
|
||||||
} => {
|
} => {
|
||||||
forward!(
|
forward!(
|
||||||
router,
|
router,
|
||||||
|
|
Loading…
Reference in New Issue