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;
}
+2 -2
View File
@@ -98,8 +98,8 @@ const byte subnet[] = { 255, 255, 255, 0 }; //ip adress
//#include "config_RFM69.h"
#define ZgatewayIR
#include "config_IR.h"
#define ZgatewayBT
#include "config_BT.h"
//#define ZgatewayBT
//#include "config_BT.h"
//#define ZsensorINA226
//#include "config_INA226.h"
//#define ZsensorDHT