Skip to content

Commit

Permalink
Make Stream functions if File to not wait for timeout
Browse files Browse the repository at this point in the history
Fixes: #1597
  • Loading branch information
me-no-dev committed Jul 5, 2018
1 parent 9f8f057 commit 95b8754
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/FS/src/FS.h
Expand Up @@ -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;
Expand Down

0 comments on commit 95b8754

Please sign in to comment.