more linting
This commit is contained in:
parent
6b2c3f5b16
commit
3c487fbbb4
@ -22,7 +22,7 @@ pub(crate) async fn upload_bluetooth_firmware<PWR: OutputPin, SPI: SpiBusCyw43>(
|
|||||||
let mut aligned_data_buffer: [u8; 0x100] = [0; 0x100];
|
let mut aligned_data_buffer: [u8; 0x100] = [0; 0x100];
|
||||||
// structs
|
// structs
|
||||||
let mut fw_bytes_pointer = 0;
|
let mut fw_bytes_pointer = 0;
|
||||||
for (index, &(dest_addr, num_fw_bytes)) in firmware_offsets.iter().enumerate() {
|
for &(dest_addr, num_fw_bytes) in firmware_offsets.iter() {
|
||||||
let fw_bytes = &firmware[(fw_bytes_pointer)..(fw_bytes_pointer + num_fw_bytes)];
|
let fw_bytes = &firmware[(fw_bytes_pointer)..(fw_bytes_pointer + num_fw_bytes)];
|
||||||
assert!(fw_bytes.len() == num_fw_bytes);
|
assert!(fw_bytes.len() == num_fw_bytes);
|
||||||
let mut dest_start_addr = dest_addr;
|
let mut dest_start_addr = dest_addr;
|
||||||
|
Loading…
Reference in New Issue
Block a user