V220 IRRemote ESP8266 library compatibility #120 (#127)

* V220 IRRemote ESP8266 library compatibility #120

* change CI lib version

#120

* correct arduino compilation error

#120
This commit is contained in:
Florian authored and GitHub committed 2017-10-05 22:42:18 +02:00
1 parent a87756a2c5
commit e5bcf7290c
5 files changed
+11 -6

No files matched your search

+7 -2
View File
@@ -62,8 +62,13 @@ boolean IRtoMQTT(){
MQTTbits = String(results.bits);
String rawCode = "";
// Dump data
for (int i = 1; i < results.rawlen; i++) {
rawCode = rawCode + (results.rawbuf[i] * USECPERTICK);
for (uint16_t i = 1; i < results.rawlen; i++) {
#ifdef ESP8266
if (i % 100 == 0) yield(); // Preemptive yield every 100th entry to feed the WDT.
rawCode = rawCode + (results.rawbuf[i] * RAWTICK);
#else
rawCode = rawCode + (results.rawbuf[i] * USECPERTICK);
#endif
if ( i < results.rawlen-1 ) rawCode = rawCode + ","; // ',' not needed on last one
}
trc(rawCode);