From 95b87545e71a70415500b83359e9e691962a1e54 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Thu, 5 Jul 2018 11:51:58 +0200 Subject: [PATCH] Make Stream functions if File to not wait for timeout Fixes: https://github.com/espressif/arduino-esp32/issues/1597 --- libraries/FS/src/FS.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/FS/src/FS.h b/libraries/FS/src/FS.h index c27e3a64b89..d63fc5da305 100644 --- a/libraries/FS/src/FS.h +++ b/libraries/FS/src/FS.h @@ -47,7 +47,9 @@ enum SeekMode { class File : public Stream { public: - File(FileImplPtr p = FileImplPtr()) : _p(p) {} + File(FileImplPtr p = FileImplPtr()) : _p(p) { + _timeout = 0; + } size_t write(uint8_t) override; size_t write(const uint8_t *buf, size_t size) override;