Probably doesn't need to have a timeout (I hope)

This commit is contained in:
beerpsi 2024-03-22 21:48:44 +07:00
parent 2328447f48
commit b53a842273

View File

@ -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(())
};