You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/06/12 21:01:47 UTC
[incubator-nuttx-apps] branch master updated:
examples/pca9635/pca9635_main.c: The brightness struct name was changed in
the OS driver, thus this example needs to follow suit.
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 6fd57ba examples/pca9635/pca9635_main.c: The brightness struct name was changed in the OS driver, thus this example needs to follow suit.
6fd57ba is described below
commit 6fd57ba0712a78b20bd3ce49022924810a5552c7
Author: Ouss4 <ab...@gmail.com>
AuthorDate: Fri Jun 12 21:22:02 2020 +0100
examples/pca9635/pca9635_main.c: The brightness struct name was changed
in the OS driver, thus this example needs to follow suit.
---
examples/pca9635/pca9635_main.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/examples/pca9635/pca9635_main.c b/examples/pca9635/pca9635_main.c
index 0746e05..833807b 100644
--- a/examples/pca9635/pca9635_main.c
+++ b/examples/pca9635/pca9635_main.c
@@ -68,7 +68,7 @@
int main(int argc, FAR char *argv[])
{
- struct pca9635pw_setled_brightness_arg_s ledbright;
+ struct pca9635pw_brightness_s ledbright;
int led;
int bright;
int fd;
@@ -91,10 +91,12 @@ int main(int argc, FAR char *argv[])
ledbright.led = led;
ledbright.brightness = bright;
- ret = ioctl(fd, PWMIOC_SETLED_BRIGHTNESS, (unsigned long)&ledbright);
+ ret = ioctl(fd, PWMIOC_SETLED_BRIGHTNESS,
+ (unsigned long)&ledbright);
if (ret < 0)
{
- _err("ERROR: ioctl(PWMIOC_SETLED_BRIGHTNESS) failed: %d\n", errno);
+ _err("ERROR: ioctl(PWMIOC_SETLED_BRIGHTNESS) failed: %d\n",
+ errno);
}
}