File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 27
27
#undef FILE_READ
28
28
#define FILE_READ sdfat::O_READ
29
29
#undef FILE_WRITE
30
- #define FILE_WRITE (sdfat::O_READ | sdfat::O_WRITE | sdfat::O_CREAT)
30
+ #define FILE_WRITE (sdfat::O_READ | sdfat::O_WRITE | sdfat::O_CREAT | sdfat::O_APPEND )
31
31
32
32
class SDClass {
33
33
public:
Original file line number Diff line number Diff line change @@ -350,10 +350,10 @@ TEST_CASE("Multisplendored File::writes", "[fs]")
350
350
f.write ((const uint8_t *)&bigone, 4 );
351
351
f.close ();
352
352
REQUIRE (readFileSD (" /file.txt" ) == " aAbbcctheendxyz@@@@" );
353
- File g = SD.open (" /file .txt" , FILE_WRITE);
353
+ File g = SD.open (" /file2 .txt" , FILE_WRITE);
354
354
g.write (0 );
355
355
g.close ();
356
- g = SD.open (" /file .txt" , FILE_READ);
356
+ g = SD.open (" /file2 .txt" , FILE_READ);
357
357
uint8_t u = 0x66 ;
358
358
g.read (&u, 1 );
359
359
g.close ();
You can’t perform that action at this time.
0 commit comments