Merged in ziggurat29/apps (pull request #54)

minor; media app is intended to take either a command line argument, or a compiled-in default value from config.  However, the default is ignored, leading to confusing error messages.
This commit is contained in:
Gregory Nutt 2016-07-17 17:09:30 -06:00
commit 0fd29e31cb

View File

@ -155,7 +155,7 @@ int media_main(int argc, FAR char *argv[])
devpath = argv[1]; devpath = argv[1];
} }
fd = open(argv[1], O_RDWR); fd = open(devpath, O_RDWR);
if (fd < 0) if (fd < 0)
{ {