tasks: render: commit only works with mut, duh
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user