clippy
This commit is contained in:
parent
802416d267
commit
bf32dc5d3a
@ -63,7 +63,7 @@ impl Ble {
|
|||||||
|
|
||||||
core::ptr::copy(buf.as_ptr(), pcmd_serial_buf, buf.len());
|
core::ptr::copy(buf.as_ptr(), pcmd_serial_buf, buf.len());
|
||||||
|
|
||||||
let mut cmd_packet = &mut *(*TL_REF_TABLE.assume_init().ble_table).pcmd_buffer;
|
let cmd_packet = &mut *(*TL_REF_TABLE.assume_init().ble_table).pcmd_buffer;
|
||||||
cmd_packet.cmdserial.ty = TlPacketType::BleCmd as u8;
|
cmd_packet.cmdserial.ty = TlPacketType::BleCmd as u8;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ impl Ble {
|
|||||||
|
|
||||||
#[allow(dead_code)] // Not used currently but reserved
|
#[allow(dead_code)] // Not used currently but reserved
|
||||||
pub(super) fn ble_send_acl_data() {
|
pub(super) fn ble_send_acl_data() {
|
||||||
let mut cmd_packet = unsafe { &mut *(*TL_REF_TABLE.assume_init().ble_table).phci_acl_data_buffer };
|
let cmd_packet = unsafe { &mut *(*TL_REF_TABLE.assume_init().ble_table).phci_acl_data_buffer };
|
||||||
|
|
||||||
cmd_packet.acl_data_serial.ty = TlPacketType::AclData as u8;
|
cmd_packet.acl_data_serial.ty = TlPacketType::AclData as u8;
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ pub fn shci_ble_init(param: ShciBleInitCmdParam) {
|
|||||||
(*cmd_ptr).cmdserial.cmd.cmd_code = SCHI_OPCODE_BLE_INIT;
|
(*cmd_ptr).cmdserial.cmd.cmd_code = SCHI_OPCODE_BLE_INIT;
|
||||||
(*cmd_ptr).cmdserial.cmd.payload_len = core::mem::size_of::<ShciBleInitCmdParam>() as u8;
|
(*cmd_ptr).cmdserial.cmd.payload_len = core::mem::size_of::<ShciBleInitCmdParam>() as u8;
|
||||||
|
|
||||||
let mut p_cmd_buffer = &mut *(*TL_SYS_TABLE.as_mut_ptr()).pcmd_buffer;
|
let p_cmd_buffer = &mut *(*TL_SYS_TABLE.as_mut_ptr()).pcmd_buffer;
|
||||||
core::ptr::write(p_cmd_buffer, *cmd_ptr);
|
core::ptr::write(p_cmd_buffer, *cmd_ptr);
|
||||||
|
|
||||||
p_cmd_buffer.cmdserial.ty = TlPacketType::SysCmd as u8;
|
p_cmd_buffer.cmdserial.ty = TlPacketType::SysCmd as u8;
|
||||||
|
Loading…
Reference in New Issue
Block a user