arduino compatibility correction

This commit is contained in:
1technophile committed 2017-11-25 14:44:52 +01:00
1 parent bf7a355843
commit 38665ecc2a
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -72,7 +72,7 @@ boolean BTtoMQTT() {
#endif
if (returnedString != "") {
size_t pos = 0;
while ((pos = returnedString.lastIndexOf(delimiter)) != std::string::npos) {
while ((pos = returnedString.lastIndexOf(delimiter)) != -1) {
#ifdef ESP8266
yield();
#endif
@@ -115,7 +115,7 @@ boolean BTtoMQTT() {
void strupp(char* beg)
{
while (*beg = std::toupper(*beg))
while (*beg = toupper(*beg))
++beg;
}