aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuntc <[email protected]>2021-10-11 09:08:58 +1100
committerhuntc <[email protected]>2021-10-11 09:08:58 +1100
commitb043778f750f60f1361bb56f4b57e8ad56a13dc3 (patch)
tree8331a21cf89323106586cddc727ef523188b1dbe
parent25d6a2cd131257d83949424f7eebf47c88d95e0b (diff)
Removed the NotConnected as it isn't used.
-rw-r--r--embassy-nrf/src/saadc.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/embassy-nrf/src/saadc.rs b/embassy-nrf/src/saadc.rs
index 481f886e5..b09b909d1 100644
--- a/embassy-nrf/src/saadc.rs
+++ b/embassy-nrf/src/saadc.rs
@@ -259,20 +259,6 @@ macro_rules! negative_pin_mappings {
259 }; 259 };
260} 260}
261 261
262struct NotConnected {}
263
264impl PositivePin for NotConnected {
265 fn channel(&self) -> PositiveChannel {
266 PositiveChannel::NC
267 }
268}
269
270impl NegativePin for NotConnected {
271 fn channel(&self) -> NegativeChannel {
272 NegativeChannel::NC
273 }
274}
275
276// TODO the variant names are unchecked 262// TODO the variant names are unchecked
277// the pins are copied from nrf hal 263// the pins are copied from nrf hal
278#[cfg(feature = "9160")] 264#[cfg(feature = "9160")]