Make stream reads orders of magnitude faster (fixes #38) (#44)

Fix by @h3ndrik 
* Use correct read for stream data on the ESP32 (fixes #38)
* Adjust types for read()
This commit is contained in:
h3ndrik authored and Earle F. Philhower, III committed 2018-01-31 19:18:35 -08:00
1 parent e7c2aba2aa
commit 05a78dce2a
2 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -116,7 +116,7 @@ retry:
if (avail == 0) return 0;
if (avail < len) len = avail;
int read = stream->readBytes(reinterpret_cast<uint8_t*>(data), len);
int read = stream->read(reinterpret_cast<uint8_t*>(data), len);
pos += read;
return read;
}