1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-16 00:43:00 +03:00

LittleFS: add overrides for Stream::send (#8386)

* littlefs: add overrides for Stream::send
This commit is contained in:
david gauchard
2021-11-29 20:39:37 +01:00
committed by GitHub
parent d5444c4aa3
commit 2492057b61
3 changed files with 48 additions and 1 deletions

View File

@ -118,6 +118,18 @@ public:
time_t getCreationTime();
void setTimeCallback(time_t (*cb)(void));
// Stream::send configuration
bool inputCanTimeout () override {
// unavailable data can't become later available
return false;
}
bool outputCanTimeout () override {
// free space for write can't increase later
return false;
}
protected:
FileImplPtr _p;
time_t (*_timeCallback)(void) = nullptr;