main: use StaticCell::init_with instead of init
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user