examples/pca9635: change O_RDONLY to O_WRONLY for driver open call
PCA9635 driver does not support neither need nor write operations. The ioctl is supports PWMIOC_SETLED_BRIGHTNESS that is write like Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
93dbf8abe2
commit
480400c523
@ -59,7 +59,7 @@ int main(int argc, FAR char *argv[])
|
||||
int fd;
|
||||
int ret;
|
||||
|
||||
fd = open(CONFIG_EXAMPLES_PCA9635_DEVNAME, O_RDONLY);
|
||||
fd = open(CONFIG_EXAMPLES_PCA9635_DEVNAME, O_WRONLY);
|
||||
if (fd < 0)
|
||||
{
|
||||
fprintf(stderr, "ERROR: Failed to open %s: %d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user