diff --git a/src/tasks/oled_render.rs b/src/tasks/oled_render.rs index df7aa25..8b7190d 100644 --- a/src/tasks/oled_render.rs +++ b/src/tasks/oled_render.rs @@ -9,7 +9,7 @@ use crate::{backoff::Backoff, graphics::ssd1306::SsdOutput, tasks::oled::{Locked #[embassy_executor::task] -pub async fn oled_render(mut output: SsdOutput, surfaces: OledUiSurfacePool, uniforms: LockedUniforms) { +pub async fn oled_render(mut output: SsdOutput, mut surfaces: OledUiSurfacePool, uniforms: LockedUniforms) { warn!("Starting OLED rendering task"); Backoff::from_secs(1).forever().attempt::<_, (), DisplayError>(async || { const FPS: u64 = 30; diff --git a/src/tasks/render.rs b/src/tasks/render.rs index 57cfb26..eacceed 100644 --- a/src/tasks/render.rs +++ b/src/tasks/render.rs @@ -10,7 +10,7 @@ use crate::graphics::display::NUM_PIXELS; use crate::{graphics::display::{BikeOutput, DisplayControls, Uniforms}, tasks::ui::UiSurfacePool}; #[embassy_executor::task] -pub async fn render(rmt: esp_hal::peripherals::RMT<'static>, gpio: AnyPin<'static>, surfaces: UiSurfacePool, safety_surfaces: UiSurfacePool, mut controls: DisplayControls, mut wdt: Wdt>) { +pub async fn render(rmt: esp_hal::peripherals::RMT<'static>, gpio: AnyPin<'static>, mut surfaces: UiSurfacePool, mut safety_surfaces: UiSurfacePool, mut controls: DisplayControls, mut wdt: Wdt>) { let frequency: Rate = Rate::from_mhz(80); let rmt = Rmt::new(rmt, frequency) .expect("Failed to initialize RMT").into_async();