chore(input): improve stick update comments
This commit is contained in:
parent
8f8d47704d
commit
32812ba160
1 changed files with 2 additions and 1 deletions
|
@ -540,7 +540,7 @@ pub async fn update_button_state_task(
|
|||
}
|
||||
|
||||
/// 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.
|
||||
#[embassy_executor::task]
|
||||
|
@ -621,6 +621,7 @@ pub async fn update_stick_states_task(
|
|||
|
||||
SIGNAL_STICK_STATE.signal(current_stick_state.clone());
|
||||
|
||||
// the yield_now is in case we took too long for the ticker
|
||||
yield_now().await;
|
||||
ticker.next().await;
|
||||
|
||||
|
|
Loading…
Reference in a new issue