Add clone to embassy_rp::gpio::Level

This commit is contained in:
Slushee 2023-02-13 17:12:50 +00:00 committed by GitHub
parent 41a563aae3
commit 1626a4a74b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ const NEW_AW: AtomicWaker = AtomicWaker::new();
static INTERRUPT_WAKERS: [AtomicWaker; PIN_COUNT] = [NEW_AW; PIN_COUNT];
/// Represents a digital input or output level.
#[derive(Debug, Eq, PartialEq)]
#[derive(Debug, Eq, PartialEq, Clone)]
pub enum Level {
Low,
High,