Make Stream functions if File to not wait for timeout
Fixes: https://github.com/espressif/arduino-esp32/issues/1597
This commit is contained in:
parent
9f8f05735b
commit
95b87545e7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user