Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Oct 27, 2019
1 parent ac9aa26 commit c5b1b40
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/FirebaseJson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ void FirebaseJson::_parseToken(uint16_t &i, char *buf, int &depth, char *searchK
size_t resLen = _jsonData._dbuf.length();
if (searchIndex == -2)
tk.skip = true;
delayMicroseconds(10);
delay(0);
if (searchIndex > -1)
{
tk_index_t tk2;
Expand Down Expand Up @@ -1137,7 +1137,7 @@ void FirebaseJson::_parseToken(uint16_t &i, char *buf, int &depth, char *searchK
{
while (_updateTkIndex3(i, depth, searchKey, searchIndex, printMode))
{
delayMicroseconds(1);
delay(0);
}
}
}
Expand Down Expand Up @@ -1196,7 +1196,7 @@ void FirebaseJson::_parseToken(uint16_t &i, char *buf, int &depth, char *searchK
i++;
while (_updateTkIndex3(i, depth, searchKey, searchIndex, printMode))
{
delayMicroseconds(1);
delay(0);
}
}
else
Expand Down Expand Up @@ -1229,7 +1229,7 @@ void FirebaseJson::_parseToken(uint16_t &i, char *buf, int &depth, char *searchK
}
while (_updateTkIndex3(i, depth, searchKey, searchIndex, printMode))
{
delayMicroseconds(1);
delay(0);
}
if (_collectTk)
{
Expand Down Expand Up @@ -1257,7 +1257,7 @@ void FirebaseJson::_compileToken(uint16_t &i, char *buf, int &depth, char *searc
jsmntok_t *h = &_tokens.get()[i];
bool insertFlag = false;
bool ex = false;
delayMicroseconds(10);
delay(0);
if (searchIndex > -1)
{
tk_index_t tk2;
Expand Down Expand Up @@ -1424,7 +1424,7 @@ void FirebaseJson::_compileToken(uint16_t &i, char *buf, int &depth, char *searc
{
while (_updateTkIndex(i, depth, searchKey, searchIndex, replace, printMode, removeTk))
{
delayMicroseconds(1);
delay(0);
}
}
}
Expand Down Expand Up @@ -1491,7 +1491,7 @@ void FirebaseJson::_compileToken(uint16_t &i, char *buf, int &depth, char *searc
i++;
while (_updateTkIndex(i, depth, searchKey, searchIndex, replace, printMode, removeTk))
{
delayMicroseconds(1);
delay(0);
}
}
else
Expand Down Expand Up @@ -1546,7 +1546,7 @@ void FirebaseJson::_compileToken(uint16_t &i, char *buf, int &depth, char *searc
}
while (_updateTkIndex(i, depth, searchKey, searchIndex, replace, printMode, removeTk))
{
delayMicroseconds(1);
delay(0);
}
}
delete[] tmp;
Expand All @@ -1564,7 +1564,7 @@ void FirebaseJson::_removeToken(uint16_t &i, char *buf, int &depth, char *searc
tk_index_t tk;
_getTkIndex(depth, tk);
jsmntok_t *h = &_tokens.get()[i];
delayMicroseconds(10);
delay(0);
if (refTokenIndex == i && refTokenIndex > -1)
ncm = _remFirstTk;
if (refTokenIndex != i || (refTokenIndex == i && _remLastTk))
Expand Down Expand Up @@ -1623,7 +1623,7 @@ void FirebaseJson::_removeToken(uint16_t &i, char *buf, int &depth, char *searc
{
while (_updateTkIndex2(_tbuf, i, depth, searchKey, searchIndex, replace, printMode))
{
delayMicroseconds(1);
delay(0);
}
}
}
Expand Down Expand Up @@ -1675,7 +1675,7 @@ void FirebaseJson::_removeToken(uint16_t &i, char *buf, int &depth, char *searc
i++;
while (_updateTkIndex2(_tbuf, i, depth, searchKey, searchIndex, replace, printMode))
{
delayMicroseconds(1);
delay(0);
}
}
else
Expand Down Expand Up @@ -1718,7 +1718,7 @@ void FirebaseJson::_removeToken(uint16_t &i, char *buf, int &depth, char *searc
}
while (_updateTkIndex2(_tbuf, i, depth, searchKey, searchIndex, replace, printMode))
{
delayMicroseconds(1);
delay(0);
}
}
delete[] tmp;
Expand Down Expand Up @@ -1812,7 +1812,7 @@ void FirebaseJson::_strToTk(const std::string &str, std::vector<std::string> &co
cont.push_back(s);
previous = current + 1;
current = str.find(delim, previous);
delayMicroseconds(1);
delay(0);
}
s = str.substr(previous, current - previous);
_trim(s);
Expand Down

0 comments on commit c5b1b40

Please sign in to comment.