We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7c4bf1 commit f656193Copy full SHA for f656193
src/led.rs
@@ -57,18 +57,18 @@ macro_rules! led_impl {
57
($($LEDTYPE:ident),+) => {
58
$(
59
impl Led for $LEDTYPE {
60
- fn off(&mut self) {
61
- self.set_low().unwrap();
62
- }
+ fn off(&mut self) {
+ self.set_low().unwrap();
+ }
63
64
- fn on(&mut self) {
65
- self.set_high().unwrap();
66
+ fn on(&mut self) {
+ self.set_high().unwrap();
67
68
- fn toggle(&mut self) {
69
- ToggleableOutputPin::toggle(self).unwrap();
+ fn toggle(&mut self) {
+ ToggleableOutputPin::toggle(self).unwrap();
70
71
}
72
)+
73
74
@@ -77,4 +77,4 @@ macro_rules! led_impl {
77
#[cfg(any(feature = "board-hifive1", feature = "board-hifive1-revb"))]
78
led_impl!(RED, GREEN);
79
80
-led_impl!(BLUE);
+led_impl!(BLUE);
0 commit comments