mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
Make FILE_WRITE append in SD.h wrapper (#6106)
* Make FILE_WRITE append in SD.h wrapper Fixes #6105 * Update host tests
This commit is contained in:
committed by
GitHub
parent
25c95ac185
commit
968d6fcb0a
@ -350,10 +350,10 @@ TEST_CASE("Multisplendored File::writes", "[fs]")
|
||||
f.write((const uint8_t*)&bigone, 4);
|
||||
f.close();
|
||||
REQUIRE(readFileSD("/file.txt") == "aAbbcctheendxyz@@@@");
|
||||
File g = SD.open("/file.txt", FILE_WRITE);
|
||||
File g = SD.open("/file2.txt", FILE_WRITE);
|
||||
g.write(0);
|
||||
g.close();
|
||||
g = SD.open("/file.txt", FILE_READ);
|
||||
g = SD.open("/file2.txt", FILE_READ);
|
||||
uint8_t u = 0x66;
|
||||
g.read(&u, 1);
|
||||
g.close();
|
||||
|
Reference in New Issue
Block a user