Skip to content

Commit 95b8754

Browse files
committed
Make Stream functions if File to not wait for timeout
Fixes: espressif#1597
1 parent 9f8f057 commit 95b8754

File tree

1 file changed

+3
-1
lines changed
  • libraries/FS/src

1 file changed

+3
-1
lines changed

libraries/FS/src/FS.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ enum SeekMode {
4747
class File : public Stream
4848
{
4949
public:
50-
File(FileImplPtr p = FileImplPtr()) : _p(p) {}
50+
File(FileImplPtr p = FileImplPtr()) : _p(p) {
51+
_timeout = 0;
52+
}
5153

5254
size_t write(uint8_t) override;
5355
size_t write(const uint8_t *buf, size_t size) override;

0 commit comments

Comments
 (0)