From 3b00789e5687dc11b0a0dcea46e913cb4628b808 Mon Sep 17 00:00:00 2001 From: Paul Bender Date: Fri, 10 Oct 2025 09:28:43 -0700 Subject: [PATCH] Revert "Merge branch 'remove-dummy-output-pin' into century-error" This reverts commit a9b15528c2b115323dfb2e1cad7a224324a5c72f, reversing changes made to e087909f0b2761ea33a8fc685b3485f51598d099. --- tests/common/mod.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/common/mod.rs b/tests/common/mod.rs index a1ff32c..a460710 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -57,6 +57,21 @@ impl BitFlags { pub const WEEKDAY: u8 = 0b0100_0000; } +pub struct DummyOutputPin; + +impl embedded_hal::digital::OutputPin for DummyOutputPin { + fn set_low(&mut self) -> Result<(), Self::Error> { + Ok(()) + } + fn set_high(&mut self) -> Result<(), Self::Error> { + Ok(()) + } +} + +impl embedded_hal::digital::ErrorType for DummyOutputPin { + type Error = embedded_hal::digital::ErrorKind; +} + pub fn new_ds3231( transactions: &[I2cTrans], ) -> Ds323x, ic::DS3231> {