Permalink
Browse files

examples: c: led: Initialize LED based on index

Since the LEDs are initialized based on index, modify the USER_LED
to index 0.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
  • Loading branch information...
Mani-Sadhasivam committed Aug 30, 2018
1 parent 6fcd882 commit 806c17f66484c6f2babbef071409dcbbfd46cffc
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/c/led.c
View
@@ -36,7 +36,7 @@
#include "mraa/led.h"
/* LED name */
#define USER_LED "user1"
#define USER_LED 0
/* trigger type */
#define LED_TRIGGER "heartbeat"

0 comments on commit 806c17f

Please sign in to comment.