chore: formatting

This commit is contained in:
beerpsi 2023-12-29 00:04:22 +07:00
parent 3387be15dc
commit eb579f932f
2 changed files with 12 additions and 14 deletions

View File

@ -62,9 +62,7 @@ pub fn read_pressure_data(_input: &[u8]) -> [u8; 32] {
/// (e.g. set magic bytes). /// (e.g. set magic bytes).
#[cfg(any(chuni, chusanapp))] #[cfg(any(chuni, chusanapp))]
#[inline(always)] #[inline(always)]
pub fn init_output_buffer(_output: &mut [u8]) { pub fn init_output_buffer(_output: &mut [u8]) {}
}
/// Update the RGB lighting on the slider. A slice `rgb` is provided, alternating /// Update the RGB lighting on the slider. A slice `rgb` is provided, alternating
/// between 16 touch pad pixels and 15 divider pixels, going from right to left. /// between 16 touch pad pixels and 15 divider pixels, going from right to left.

View File

@ -354,14 +354,14 @@ fn device_init() -> Result<()> {
fn input_thread_proc() { fn input_thread_proc() {
info!("Input thread started"); info!("Input thread started");
let mut shmem = let mut shmem = match create_shared_memory(INPUT_SHMEM_OS_ID, con_impl::INPUT_MEMORY_SIZE, true)
match create_shared_memory(INPUT_SHMEM_OS_ID, con_impl::INPUT_MEMORY_SIZE, true) { {
Ok(s) => s, Ok(s) => s,
Err(e) => { Err(e) => {
error!("Could not obtain shared memory for controller input: {e:#?}"); error!("Could not obtain shared memory for controller input: {e:#?}");
return; return;
} }
}; };
let usb_in = unsafe { shmem.as_slice_mut() }; let usb_in = unsafe { shmem.as_slice_mut() };
let device = DEVICE.get().unwrap(); let device = DEVICE.get().unwrap();