You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/01/28 08:31:55 UTC

[GitHub] [incubator-nuttx-apps] pkarashchenko opened a new pull request #988: examples/pca9635: remote read mode from driver open call

pkarashchenko opened a new pull request #988:
URL: https://github.com/apache/incubator-nuttx-apps/pull/988


   ## Summary
   PCA9635 driver does not support neither need nor write operations.
   Only ioctl is supported.
   
   ## Impact
   None
   
   ## Testing
   Pass CI
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a change in pull request #988: examples/pca9635: remote read mode from driver open call

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on a change in pull request #988:
URL: https://github.com/apache/incubator-nuttx-apps/pull/988#discussion_r794443854



##########
File path: examples/pca9635/pca9635_main.c
##########
@@ -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, 0);

Review comment:
       Should we change O_RDONLY to O_WRONLY? PWMIOC_SETLED_BRIGHTNESS need the write permission.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] pkarashchenko commented on a change in pull request #988: examples/pca9635: remote read mode from driver open call

Posted by GitBox <gi...@apache.org>.
pkarashchenko commented on a change in pull request #988:
URL: https://github.com/apache/incubator-nuttx-apps/pull/988#discussion_r794550077



##########
File path: examples/pca9635/pca9635_main.c
##########
@@ -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, 0);

Review comment:
       Done




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx-apps] xiaoxiang781216 merged pull request #988: examples/pca9635: change O_RDONLY to O_WRONLY for driver open call

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #988:
URL: https://github.com/apache/incubator-nuttx-apps/pull/988


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org