From 552ddc08da5d0b817bce8c2cc780f50678c6ffc7 Mon Sep 17 00:00:00 2001 From: AkiyukiOkayasu Date: Fri, 16 Feb 2024 22:24:38 +0900 Subject: [PATCH] Undo changes made by mistake --- rp2040-hal/examples/multicore_fifo_blink.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rp2040-hal/examples/multicore_fifo_blink.rs b/rp2040-hal/examples/multicore_fifo_blink.rs index e00e4f856..0168619e4 100644 --- a/rp2040-hal/examples/multicore_fifo_blink.rs +++ b/rp2040-hal/examples/multicore_fifo_blink.rs @@ -70,11 +70,11 @@ fn core1_task(sys_freq: u32) -> ! { let mut led_pin = pins.gpio25.into_push_pull_output(); let mut delay = cortex_m::delay::Delay::new(core.SYST, sys_freq); loop { - let input = sio.fifo().read(); + let input = sio.fifo.read(); if let Some(word) = input { delay.delay_ms(word); led_pin.toggle().unwrap(); - sio.fifo().write_blocking(CORE1_TASK_COMPLETE); + sio.fifo.write_blocking(CORE1_TASK_COMPLETE); }; } } @@ -162,10 +162,10 @@ fn main() -> ! { } // Send the new delay time to Core 1. We convert it - sio.fifo().write(led_period as u32); + sio.fifo.write(led_period as u32); // Sleep until Core 1 sends a message to tell us it is done - let ack = sio.fifo().read_blocking(); + let ack = sio.fifo.read_blocking(); if ack != CORE1_TASK_COMPLETE { // In a real application you might want to handle the case // where the CPU sent the wrong message - we're going to