From 5afe01617a8fe9e46b4bde47a3dfa24e737ae9fa Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Mon, 10 May 2021 20:13:08 +0200 Subject: [PATCH] Use rxdrdy as trigger for timer --- embassy-nrf/src/uarte.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-nrf/src/uarte.rs b/embassy-nrf/src/uarte.rs index 0f574ba36..7172f5033 100644 --- a/embassy-nrf/src/uarte.rs +++ b/embassy-nrf/src/uarte.rs @@ -342,7 +342,7 @@ impl<'d, U: Instance, T: TimerInstance> UarteWithIdle<'d, U, T> { }); let mut ppi_ch1 = Ppi::new(ppi_ch1.degrade_configurable()); - ppi_ch1.set_event(Event::from_reg(&r.events_rxstarted)); + ppi_ch1.set_event(Event::from_reg(&r.events_rxdrdy)); ppi_ch1.set_task(Task::from_reg(&rt.tasks_clear)); ppi_ch1.set_fork_task(Task::from_reg(&rt.tasks_start)); ppi_ch1.enable();