diff options
| author | Cameron <[email protected]> | 2023-06-30 11:50:27 +0200 |
|---|---|---|
| committer | Cameron <[email protected]> | 2023-06-30 11:50:27 +0200 |
| commit | bca2c549482c05954b20021ec976609bb607eed3 (patch) | |
| tree | 5a7a3380b187c4a4cdb19ae7060419a9d1ff2dc8 /embassy-nrf/src | |
| parent | 81cbb0fc322c8dd23128a28e0500df1f185e1067 (diff) | |
Adjusted build issue
Diffstat (limited to 'embassy-nrf/src')
| -rw-r--r-- | embassy-nrf/src/saadc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-nrf/src/saadc.rs b/embassy-nrf/src/saadc.rs index b6984b0f0..23292924c 100644 --- a/embassy-nrf/src/saadc.rs +++ b/embassy-nrf/src/saadc.rs | |||
| @@ -320,9 +320,9 @@ impl<'d, const N: usize> Saadc<'d, N> { | |||
| 320 | timer.cc(0).write(sample_counter); | 320 | timer.cc(0).write(sample_counter); |
| 321 | timer.cc(0).short_compare_clear(); | 321 | timer.cc(0).short_compare_clear(); |
| 322 | 322 | ||
| 323 | let compare_event = timer.cc(0).event_compare(); | 323 | let timer_cc = timer.cc(0); |
| 324 | 324 | ||
| 325 | let mut sample_ppi = Ppi::new_one_to_one(ppi_ch2, compare_event, Task::from_reg(&r.tasks_sample)); | 325 | let mut sample_ppi = Ppi::new_one_to_one(ppi_ch2, timer_cc.event_compare(), Task::from_reg(&r.tasks_sample)); |
| 326 | 326 | ||
| 327 | timer.start(); | 327 | timer.start(); |
| 328 | 328 | ||
