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).
#[cfg(any(chuni, chusanapp))]
#[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
/// between 16 touch pad pixels and 15 divider pixels, going from right to left.

View File

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