#![no_std] use core::fmt::Debug; use embassy_time::Timer; use log::error; pub async fn unwrap(res: Result) -> T { match res { Ok(v) => v, Err(e) => { error!("FATAL ERROR : {:?}", e); loop { Timer::after_millis(0).await; } } } }