diff options
| author | hathach <[email protected]> | 2018-03-13 16:30:53 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-13 16:30:53 +0700 |
| commit | ffca1f5e64b2206c2f006a7912c27ae3ee0f9d26 (patch) | |
| tree | 67dcd91b51ca7995a32745fee3bb5ce50f3de940 /examples/device/device_virtual_com/src/main.c | |
| parent | 2435abb0a8496361fb08cdaa4234e9d205add186 (diff) | |
working on nrf52
Diffstat (limited to 'examples/device/device_virtual_com/src/main.c')
| -rw-r--r-- | examples/device/device_virtual_com/src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 } //--------------------------------------------------------------------+ |
