Merged in antmerlino/nuttx/photon_rgb_fix (pull request #643)

configs/photon: Fixes build error introduced in recent rgbled changes.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Anthony Merlino 2018-05-14 18:25:53 +00:00 committed by Gregory Nutt
parent 2ed01b3c27
commit 2de86b3e40

View File

@ -41,6 +41,8 @@
#include <errno.h> #include <errno.h>
#include <debug.h> #include <debug.h>
#include <fcntl.h>
#include <stdio.h>
#include <nuttx/drivers/pwm.h> #include <nuttx/drivers/pwm.h>
#include <nuttx/leds/rgbled.h> #include <nuttx/leds/rgbled.h>
@ -161,7 +163,7 @@ int stm32_rgbled_setup(void)
return ret; return ret;
} }
fd = open(fd, O_WRONLY); fd = open("/dev/rgbled0", O_WRONLY);
if (fd < 0) if (fd < 0)
{ {
lederr("ERROR: open failed: %d\n", fd); lederr("ERROR: open failed: %d\n", fd);