From 489b0ad1051a9a172d3c1585f3256b3ab5c64597 Mon Sep 17 00:00:00 2001 From: Naxdy Date: Sun, 1 Sep 2024 17:32:01 +0200 Subject: [PATCH] chore(input): improve stick update comments --- src/input.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input.rs b/src/input.rs index 874e17d..33a6f38 100644 --- a/src/input.rs +++ b/src/input.rs @@ -538,7 +538,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] @@ -616,6 +616,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;