forked from NaxdyOrg/NaxGCC-FW
feat(config): implement rest of config / calibration options
This commit is contained in:
parent
7ef15c0e7b
commit
1b4fbddd78
3 changed files with 905 additions and 56 deletions
957
src/config.rs
957
src/config.rs
File diff suppressed because it is too large
Load diff
|
@ -366,7 +366,7 @@ pub async fn usb_transfer_task(
|
||||||
let currtime = Instant::now();
|
let currtime = Instant::now();
|
||||||
let polltime = currtime.duration_since(lasttime);
|
let polltime = currtime.duration_since(lasttime);
|
||||||
let micros = polltime.as_micros();
|
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.
|
// If we're sending reports too fast, reset the ticker.
|
||||||
// This might happen right after plug-in, or after suspend.
|
// This might happen right after plug-in, or after suspend.
|
||||||
if micros < 8150 {
|
if micros < 8150 {
|
||||||
|
|
|
@ -32,7 +32,7 @@ use crate::{
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Used to send the button state to the usb task and the calibration task
|
/// 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();
|
PubSubChannel::new();
|
||||||
|
|
||||||
/// Used to send the stick state from the stick task to the main input task
|
/// Used to send the stick state from the stick task to the main input task
|
||||||
|
|
Loading…
Reference in a new issue