File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2727#undef FILE_READ
2828#define FILE_READ sdfat::O_READ
2929#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 )
3131
3232class SDClass {
3333public:
Original file line number Diff line number Diff line change @@ -350,10 +350,10 @@ TEST_CASE("Multisplendored File::writes", "[fs]")
350350 f.write ((const uint8_t *)&bigone, 4 );
351351 f.close ();
352352 REQUIRE (readFileSD (" /file.txt" ) == " aAbbcctheendxyz@@@@" );
353- File g = SD.open (" /file .txt" , FILE_WRITE);
353+ File g = SD.open (" /file2 .txt" , FILE_WRITE);
354354 g.write (0 );
355355 g.close ();
356- g = SD.open (" /file .txt" , FILE_READ);
356+ g = SD.open (" /file2 .txt" , FILE_READ);
357357 uint8_t u = 0x66 ;
358358 g.read (&u, 1 );
359359 g.close ();
You can’t perform that action at this time.
0 commit comments