diff options
| author | Slushee <[email protected]> | 2023-02-13 17:12:50 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-13 17:12:50 +0000 |
| commit | 1626a4a74b50d60f2f8a53f477d49cb67a140f79 (patch) | |
| tree | cc369b97457b2a3829d4bf8ac9af0671983d4306 | |
| parent | 41a563aae3e474955892b27487e185f5f486f525 (diff) | |
Add clone to embassy_rp::gpio::Level
| -rw-r--r-- | embassy-rp/src/gpio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs index 4abb98394..e258733a6 100644 --- a/embassy-rp/src/gpio.rs +++ b/embassy-rp/src/gpio.rs | |||
| @@ -16,7 +16,7 @@ const NEW_AW: AtomicWaker = AtomicWaker::new(); | |||
| 16 | static INTERRUPT_WAKERS: [AtomicWaker; PIN_COUNT] = [NEW_AW; PIN_COUNT]; | 16 | static INTERRUPT_WAKERS: [AtomicWaker; PIN_COUNT] = [NEW_AW; PIN_COUNT]; |
| 17 | 17 | ||
| 18 | /// Represents a digital input or output level. | 18 | /// Represents a digital input or output level. |
| 19 | #[derive(Debug, Eq, PartialEq)] | 19 | #[derive(Debug, Eq, PartialEq, Clone)] |
| 20 | pub enum Level { | 20 | pub enum Level { |
| 21 | Low, | 21 | Low, |
| 22 | High, | 22 | High, |
