Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Oct 24, 2019
1 parent 32262cf commit 4b0377b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/FirebaseESP8266.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2782,7 +2782,6 @@ bool FirebaseESP8266::getServerResponse(FirebaseData &dataObj)

if (dataObj._httpCode == _HTTP_CODE_NO_CONTENT)
{

memset(lineBuf, 0, FIREBASE_RESPONSE_SIZE);
continue;
}
Expand Down Expand Up @@ -2918,9 +2917,8 @@ bool FirebaseESP8266::getServerResponse(FirebaseData &dataObj)

p1 = strpos(lineBuf, fstr, 0);
if (p1 != -1)
{
memset(lineBuf, 0, FIREBASE_RESPONSE_SIZE);
}

}

//JSON stream data?
Expand Down Expand Up @@ -3477,7 +3475,6 @@ bool FirebaseESP8266::getDownloadResponse(FirebaseData &dataObj)
}

delete[] tmp;

return true;
}

Expand Down Expand Up @@ -4351,7 +4348,7 @@ void FirebaseESP8266::setDataType(FirebaseData &dataObj, const char *data)
}
}

if (!typeSet && data[0] == '"')
if (!typeSet && data[p1] == '"' && data[p2] == '"')
{
typeSet = true;
dataObj._dataType = FirebaseDataType::STRING;
Expand Down Expand Up @@ -5739,6 +5736,8 @@ void FirebaseData::addQueue(uint8_t FirebaseMethod,
item.floatPtr = floatTarget;
item.doublePtr = doubleTarget;
item.boolPtr = boolTarget;
item.jsonPtr = jsonTarget;
item.arrPtr = arrTarget;
item.blobPtr = blobTarget;
item.storageType = storageType;
item.qID = random(100000, 200000);
Expand Down Expand Up @@ -6486,6 +6485,8 @@ void QueueManager::clear()
item.floatPtr = nullptr;
item.doublePtr = nullptr;
item.boolPtr = nullptr;
item.jsonPtr = nullptr;
item.arrPtr = nullptr;
item.blobPtr = nullptr;
item.queryFilter.clear();
}
Expand Down

0 comments on commit 4b0377b

Please sign in to comment.