mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
Add CDC ACM serial class device driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3953 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -108,14 +108,14 @@ static int lib_mode2oflags(FAR const char *mode)
|
||||
{
|
||||
/* Read from the beginning of the file; write to the end */
|
||||
|
||||
oflags |= O_RDWR|O_CREAT;
|
||||
oflags |= O_RDWR|O_CREAT|O_APPEND;
|
||||
mode++;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Write to the end of the file */
|
||||
|
||||
oflags |= O_WROK|O_CREAT;
|
||||
oflags |= O_WROK|O_CREAT|O_APPEND;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user