main: use StaticCell::init_with instead of init

This commit is contained in:
2025-12-07 13:17:25 +01:00
parent 7471cc1fbe
commit 5a403809e9

View File

@@ -66,7 +66,7 @@ async fn main(spawner: Spawner) {
ui_wdt.set_timeout(esp_hal::timer::timg::MwdtStage::Stage0, esp_hal::time::Duration::from_secs(10)); ui_wdt.set_timeout(esp_hal::timer::timg::MwdtStage::Stage0, esp_hal::time::Duration::from_secs(10));
ui_wdt.enable(); ui_wdt.enable();
let garage = BUS_GARAGE.init(Default::default()); let garage = BUS_GARAGE.init_with(|| { Default::default() });
info!("Setting up rendering pipeline"); info!("Setting up rendering pipeline");
let mut surfaces = UiSurfacePool::default(); let mut surfaces = UiSurfacePool::default();