chore: add info about stick zeroing
All checks were successful
Code quality / check (pull_request) Successful in 3m45s

This commit is contained in:
Naxdy 2024-10-14 20:47:20 +02:00
parent e12666cf50
commit 6c4c89b222
Signed by: Naxdy
GPG key ID: CC15075846BCE91B

View file

@ -551,7 +551,10 @@ pub async fn update_stick_states_task(
spi_acs: Output<'static>,
spi_ccs: Output<'static>,
) {
Timer::after_secs(3).await;
// let some time pass before accepting stick inputs
// to ensure sticks are properly zeroed
Timer::after_secs(2).await;
*SPI_SHARED.lock().await = Some(spi);
*SPI_ACS_SHARED.lock().await = Some(spi_acs);
*SPI_CCS_SHARED.lock().await = Some(spi_ccs);