Make Stream functions if File to not wait for timeout

Fixes: https://github.com/espressif/arduino-esp32/issues/1597
This commit is contained in:
me-no-dev 2018-07-05 11:51:58 +02:00
parent 9f8f05735b
commit 95b87545e7

View File

@ -47,7 +47,9 @@ enum SeekMode {
class File : public Stream class File : public Stream
{ {
public: public:
File(FileImplPtr p = FileImplPtr()) : _p(p) {} File(FileImplPtr p = FileImplPtr()) : _p(p) {
_timeout = 0;
}
size_t write(uint8_t) override; size_t write(uint8_t) override;
size_t write(const uint8_t *buf, size_t size) override; size_t write(const uint8_t *buf, size_t size) override;