diff --git a/examples/lp503x/lp503x_main.c b/examples/lp503x/lp503x_main.c index 0eba5c1b3..9cc99d3b7 100644 --- a/examples/lp503x/lp503x_main.c +++ b/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_RDONLY); + fd = open(CONFIG_EXAMPLES_LP503X_DEVPATH, O_WRONLY); if (fd < 0) { fprintf(stderr, "ERROR: Failed to open %s: %d\n",