mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Adding position() function to File class and replacing FILE_TRUNCATE and FILE_APPEND with FILE_WRITE (SD library). Updating examples and keywords.txt accordingly.
This commit is contained in:
@ -21,8 +21,7 @@
|
||||
#include <utility/SdFatUtil.h>
|
||||
|
||||
#define FILE_READ O_READ
|
||||
#define FILE_TRUNCATE (O_WRITE | O_CREAT | O_TRUNC)
|
||||
#define FILE_APPEND (O_WRITE | O_CREAT | O_APPEND)
|
||||
#define FILE_WRITE (O_READ | O_WRITE | O_CREAT | O_SYNC)
|
||||
|
||||
class File : public Stream {
|
||||
public:
|
||||
@ -34,6 +33,7 @@ public:
|
||||
virtual int available();
|
||||
virtual void flush();
|
||||
boolean seek(uint32_t pos);
|
||||
uint32_t position();
|
||||
uint32_t size();
|
||||
void close();
|
||||
operator bool();
|
||||
|
Reference in New Issue
Block a user