From ffca1f5e64b2206c2f006a7912c27ae3ee0f9d26 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 13 Mar 2018 16:30:53 +0700 Subject: working on nrf52 --- examples/device/device_virtual_com/src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/device/device_virtual_com/src/main.c') diff --git a/examples/device/device_virtual_com/src/main.c b/examples/device/device_virtual_com/src/main.c index b72c0ee22..3ee3a74d3 100644 --- a/examples/device/device_virtual_com/src/main.c +++ b/examples/device/device_virtual_com/src/main.c @@ -114,7 +114,7 @@ void led_blinking_task(void) { enum { BLINK_INTEVAL = 1000 }; - static uint32_t led_on_mask = 0; + static bool led_state = false; static uint32_t last_blink = 0; // not enough time @@ -122,8 +122,8 @@ void led_blinking_task(void) last_blink += BLINK_INTEVAL; - board_leds(led_on_mask, 1 - led_on_mask); - led_on_mask = 1 - led_on_mask; // toggle + board_led_control(BOARD_LED0, led_state); + led_state = 1 - led_state; // toggle } //--------------------------------------------------------------------+ -- cgit v1.3.1