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);