Skip to content

Commit 3335ba2

Browse files
Jonathan Pallant (42 Technology)Yatekii
authored andcommitted
Change Led back to enable/disable
1 parent ff3c836 commit 3335ba2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

boards/nRF9160-DK/examples/blinky.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ fn main() -> ! {
2121
let mut led_is_on = false;
2222
loop {
2323
if led_is_on {
24-
board.leds.led_1.off();
24+
board.leds.led_1.disable();
2525
} else {
26-
board.leds.led_1.on();
26+
board.leds.led_1.enable();
2727
}
2828
timer.start(1_000_000_u32);
2929
block!(timer.wait()).unwrap();

boards/nRF9160-DK/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,12 +604,12 @@ impl Led {
604604
}
605605

606606
/// Enable the LED
607-
pub fn on(&mut self) {
607+
pub fn enable(&mut self) {
608608
self.0.set_high()
609609
}
610610

611611
/// Disable the LED
612-
pub fn off(&mut self) {
612+
pub fn disable(&mut self) {
613613
self.0.set_low()
614614
}
615615
}

0 commit comments

Comments
 (0)