feat(config): implement rest of config / calibration options

This commit is contained in:
Naxdy 2024-04-02 22:05:57 +02:00
parent 7ef15c0e7b
commit 1b4fbddd78
Signed by untrusted user: Naxdy
GPG key ID: CC15075846BCE91B
3 changed files with 905 additions and 56 deletions

File diff suppressed because it is too large Load diff

View file

@ -366,7 +366,7 @@ pub async fn usb_transfer_task(
let currtime = Instant::now();
let polltime = currtime.duration_since(lasttime);
let micros = polltime.as_micros();
debug!("Report written in {}us", micros);
trace!("Report written in {}us", micros);
// If we're sending reports too fast, reset the ticker.
// This might happen right after plug-in, or after suspend.
if micros < 8150 {

View file

@ -32,7 +32,7 @@ use crate::{
};
/// Used to send the button state to the usb task and the calibration task
pub static CHANNEL_GCC_STATE: PubSubChannel<CriticalSectionRawMutex, GcReport, 1, 3, 1> =
pub static CHANNEL_GCC_STATE: PubSubChannel<CriticalSectionRawMutex, GcReport, 1, 4, 1> =
PubSubChannel::new();
/// Used to send the stick state from the stick task to the main input task