From 38665ecc2af4b14975f3f92b38e0c4e5a9be41af Mon Sep 17 00:00:00 2001 From: 1technophile Date: Sat, 25 Nov 2017 14:44:52 +0100 Subject: [PATCH] arduino compatibility correction --- ZgatewayBT.ino | 4 ++-- tests/Test_config.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ZgatewayBT.ino b/ZgatewayBT.ino index 522dcfc..8e56d63 100644 --- a/ZgatewayBT.ino +++ b/ZgatewayBT.ino @@ -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; } diff --git a/tests/Test_config.h b/tests/Test_config.h index ac1337b..06b305a 100644 --- a/tests/Test_config.h +++ b/tests/Test_config.h @@ -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