From 2de86b3e4034b7d5c9cf97a5c62bfbb4fe88d37d Mon Sep 17 00:00:00 2001 From: Anthony Merlino Date: Mon, 14 May 2018 18:25:53 +0000 Subject: [PATCH] Merged in antmerlino/nuttx/photon_rgb_fix (pull request #643) configs/photon: Fixes build error introduced in recent rgbled changes. Approved-by: Gregory Nutt --- configs/photon/src/stm32_rgbled.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/photon/src/stm32_rgbled.c b/configs/photon/src/stm32_rgbled.c index f39bfad32e..648bb9d363 100644 --- a/configs/photon/src/stm32_rgbled.c +++ b/configs/photon/src/stm32_rgbled.c @@ -41,6 +41,8 @@ #include #include +#include +#include #include #include @@ -161,7 +163,7 @@ int stm32_rgbled_setup(void) return ret; } - fd = open(fd, O_WRONLY); + fd = open("/dev/rgbled0", O_WRONLY); if (fd < 0) { lederr("ERROR: open failed: %d\n", fd);