Skip to content

Commit

Permalink
feat: impl Default for GPIO
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenautumns authored and dadada committed Jun 24, 2024
1 parent e474483 commit facfe38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions small-trace-gpio/src/gpio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit facfe38

Please sign in to comment.