arduino compatibility correction
This commit is contained in:
1 parent
bf7a355843
commit
38665ecc2a
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -72,7 +72,7 @@ boolean BTtoMQTT() {
|
|||||||
#endif
|
#endif
|
||||||
if (returnedString != "") {
|
if (returnedString != "") {
|
||||||
size_t pos = 0;
|
size_t pos = 0;
|
||||||
while ((pos = returnedString.lastIndexOf(delimiter)) != std::string::npos) {
|
while ((pos = returnedString.lastIndexOf(delimiter)) != -1) {
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
yield();
|
yield();
|
||||||
#endif
|
#endif
|
||||||
@@ -115,7 +115,7 @@ boolean BTtoMQTT() {
|
|||||||
|
|
||||||
void strupp(char* beg)
|
void strupp(char* beg)
|
||||||
{
|
{
|
||||||
while (*beg = std::toupper(*beg))
|
while (*beg = toupper(*beg))
|
||||||
++beg;
|
++beg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -98,8 +98,8 @@ const byte subnet[] = { 255, 255, 255, 0 }; //ip adress
|
|||||||
//#include "config_RFM69.h"
|
//#include "config_RFM69.h"
|
||||||
#define ZgatewayIR
|
#define ZgatewayIR
|
||||||
#include "config_IR.h"
|
#include "config_IR.h"
|
||||||
#define ZgatewayBT
|
//#define ZgatewayBT
|
||||||
#include "config_BT.h"
|
//#include "config_BT.h"
|
||||||
//#define ZsensorINA226
|
//#define ZsensorINA226
|
||||||
//#include "config_INA226.h"
|
//#include "config_INA226.h"
|
||||||
//#define ZsensorDHT
|
//#define ZsensorDHT
|
||||||
|
|||||||
Reference in new issue
Block a user