Skip to content

Commit 84206eb

Browse files
Fix SD.H FILE_WRITE mapping (earlephilhower#1178)
O_RDWR != O_READ|O_WRITE. Posix is weird. Thanks @mcspr
1 parent 5e576c1 commit 84206eb

File tree

1 file changed

+1
-1
lines changed
  • libraries/SD/src

1 file changed

+1
-1
lines changed

libraries/SD/src/SD.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#undef FILE_READ
2727
#define FILE_READ O_READ
2828
#undef FILE_WRITE
29-
#define FILE_WRITE (O_READ | O_WRITE | O_CREAT | O_APPEND)
29+
#define FILE_WRITE (O_RDWR | O_CREAT | O_APPEND)
3030

3131

3232
class SDClass {

0 commit comments

Comments
 (0)