chore(input): improve stick update comments

This commit is contained in:
Naxdy 2024-09-01 17:32:01 +02:00
parent 99add9efc5
commit 489b0ad105
Signed by: Naxdy
GPG key ID: CC15075846BCE91B

View file

@ -538,7 +538,7 @@ pub async fn update_button_state_task(
} }
/// Task responsible for updating the stick states. /// Task responsible for updating the stick states.
/// Publishes the result to STICK_SIGNAL. /// Publishes the result to SIGNAL_STICK_STATE.
/// ///
/// Has to run on core0 because it makes use of SPI0. /// Has to run on core0 because it makes use of SPI0.
#[embassy_executor::task] #[embassy_executor::task]
@ -616,6 +616,7 @@ pub async fn update_stick_states_task(
SIGNAL_STICK_STATE.signal(current_stick_state.clone()); SIGNAL_STICK_STATE.signal(current_stick_state.clone());
// the yield_now is in case we took too long for the ticker
yield_now().await; yield_now().await;
ticker.next().await; ticker.next().await;