From b53a84227356f70422fffae5b6c9c03df4de30f2 Mon Sep 17 00:00:00 2001 From: beerpsi Date: Fri, 22 Mar 2024 21:48:44 +0700 Subject: [PATCH] Probably doesn't need to have a timeout (I hope) --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(()) };