From 1662f53ac9adc8dddf4673b19be6d81aa531a4ff Mon Sep 17 00:00:00 2001 From: Wilfried Chauveau Date: Sat, 6 Jan 2024 20:09:53 +0000 Subject: [PATCH] Update rp2040-hal/src/i2c/controller/eh1_0_async.rs Co-authored-by: Jan Niehusmann --- rp2040-hal/src/i2c/controller/eh1_0_async.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rp2040-hal/src/i2c/controller/eh1_0_async.rs b/rp2040-hal/src/i2c/controller/eh1_0_async.rs index d30029a09..69e0aae7f 100644 --- a/rp2040-hal/src/i2c/controller/eh1_0_async.rs +++ b/rp2040-hal/src/i2c/controller/eh1_0_async.rs @@ -275,6 +275,7 @@ where } else { w.stop().disable(); } + // Safety: the `.bits()` fields are marked `unsafe` but all bit values are valid unsafe { w.dat().bits(byte) } }); }