This commit is contained in:
Volodymyr Shymanskyy
2017-01-17 12:09:35 +02:00
parent 195233fbaf
commit 78c21aa6ae
4 changed files with 31 additions and 15 deletions

View File

@@ -122,7 +122,7 @@ public:
at->maintain();
size_t cnt = 0;
while (cnt < size) {
size_t chunk = min(size-cnt, rx.size());
size_t chunk = TinyGsmMin(size-cnt, rx.size());
if (chunk > 0) {
rx.get(buf, chunk);
buf += chunk;