This commit is contained in:
Tony DiCola 2015-06-10 15:39:03 -07:00
commit a33dac3249
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ class Adafruit_MQTT_FONA : public Adafruit_MQTT {
DEBUG_PRINT('!'); DEBUG_PRINT('!');
if (len + avail > maxlen) { if (len + avail > maxlen) {
// oof we cant read more of the available data in this buffer avail = maxlen - len;
return len; if (avail == 0) return len;
} }
// try to read the data into the end of the pointer // try to read the data into the end of the pointer