From 134aa67dca4beb91e1d3cc7b633de6b2829b924b Mon Sep 17 00:00:00 2001 From: Sven Friedrich Date: Thu, 20 Jun 2024 13:38:12 +0200 Subject: [PATCH] feat: impl Default for GPIO --- small-trace-gpio/src/gpio.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/small-trace-gpio/src/gpio.rs b/small-trace-gpio/src/gpio.rs index c623c87..193f8d7 100644 --- a/small-trace-gpio/src/gpio.rs +++ b/small-trace-gpio/src/gpio.rs @@ -59,6 +59,12 @@ impl GpioTracer { } } +impl Default for GpioTracer { + fn default() -> Self { + Self::new() + } +} + impl Tracer for GpioTracer { /// Writes the bits of the value to IO pins 26 to 41. Then resets the traced /// value to 0.