nightt5879 commented on code in PR #3489: URL: https://github.com/apache/nuttx-apps/pull/3489#discussion_r3270775543
########## examples/lp503x/lp503x_main.c: ########## @@ -632,7 +632,7 @@ int main(int argc, FAR char *argv[]) int len; int x; - fd = open(CONFIG_EXAMPLES_LP503X_DEVPATH, O_CREAT); + fd = open(CONFIG_EXAMPLES_LP503X_DEVPATH, O_RDONLY); Review Comment: Done, changed it to `O_WRONLY`. The LP503X driver registers the device node with `0222`, and the example controls the device through `ioctl()`, so write-only access matches the driver 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
