Code cleanup

This commit is contained in:
Christoffer Martinsson 2024-07-20 20:55:33 +02:00
parent 41ce7d3b40
commit 94b24fa0ac

View File

@ -1,4 +1,4 @@
//! Project: CMtec CMDR joystick 24
//! Project: CMtec CMDR joystick 25
//! Date: 2023-08-01
//! Author: Christoffer Martinsson
//! Email: cm@cmtec.se
@ -53,6 +53,20 @@
// | |CH1M |CH12Z|CH1P | |CH3M |CH34Z|CH3P | |
// | | - | |CH4M | |
// ---------------------------------------------------------------
//
// Config Layer (holding CONFIG button)
// ---------------------------------------------------------------
// |BOOT L| CAL U| | CONFIG | | USB L|ELRS U|
// ---------------------------------------------------------------
// | | THL-| THL+| - | | - | - | - | |
// | |
// | | - | | - | |
// | | - | | - | |
// | -/- -/- |
// | | - | | - | |
// | | - | - | - | | - | - | - | |
// | | - | | - | |
// ---------------------------------------------------------------
#![no_std]
#![no_main]
@ -127,7 +141,7 @@ pub const SENSITIVITY: i32 = (0.01 * ((1 << I32_FRAC_BITS) as f32)) as i32;
pub const DEBOUNCE: u8 = 10;
pub const RELEASE_RIMEOUT: u16 = 30;
pub const RELEASE_RIMEOUT: u16 = 30; // => 300ms
// Public types
#[derive(Copy, Clone, Default)]