correct int array name
This commit is contained in:
1 parent
2ea2576d8d
commit
642c0938f2
1 file changed
+4
-4
+4
-4
@@ -117,10 +117,10 @@ void MQTTtoIR(char * topicOri, char * datacallback) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef IR_Raw
|
#ifdef IR_Raw
|
||||||
else if(strstr(topicOri, "IR_Raw") != NULL){ // sending GC data from https://irdb.globalcache.com
|
else if(strstr(topicOri, "IR_Raw") != NULL){ // sending Raw data
|
||||||
trc("IR_Raw");
|
trc("IR_Raw");
|
||||||
//buffer allocation from char datacallback
|
//buffer allocation from char datacallback
|
||||||
unsigned int GC[count+1];
|
unsigned int Raw[count+1];
|
||||||
String value = "";
|
String value = "";
|
||||||
int j = 0;
|
int j = 0;
|
||||||
for(int i = 0; i < s; i++)
|
for(int i = 0; i < s; i++)
|
||||||
@@ -130,12 +130,12 @@ void MQTTtoIR(char * topicOri, char * datacallback) {
|
|||||||
}
|
}
|
||||||
if ((datacallback[i] == ',') || (i == s - 1))
|
if ((datacallback[i] == ',') || (i == s - 1))
|
||||||
{
|
{
|
||||||
GC[j]= value.toInt();
|
Raw[j]= value.toInt();
|
||||||
value = "";
|
value = "";
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
irsend.sendRaw(GC, j, 38); // frequency hardcoded as a first approach for test puroposes
|
irsend.sendRaw(Raw, j, 38); // frequency hardcoded as a first approach for test purposes
|
||||||
signalSent = true;
|
signalSent = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user