diff --git a/src/lib.rs b/src/lib.rs index 825e8eb..112df7f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -326,7 +326,7 @@ pub extern "C" fn chuni_io_led_set_colors(_rgb: *const u8) {} #[cfg(any(chuni, chusanapp))] fn device_init() -> Result<()> { { - let Some(mut global_device) = DEVICE.try_write_for(DEVICE_POLLING_INTERVAL) else { + let Some(mut global_device) = DEVICE.write() else { return Ok(()) };