* V220 IRRemote ESP8266 library compatibility #120 * change CI lib version #120 * correct arduino compilation error #120
This commit is contained in:
1 parent
a87756a2c5
commit
e5bcf7290c
5 files changed
+11
-6
No files matched your search
+1
-1
@@ -18,7 +18,7 @@ install:
|
||||
- wget https://github.com/z3t0/Arduino-IRremote/archive/2.1.0.zip -O /tmp/IRremote.zip
|
||||
- unzip /tmp/IRremote.zip -d /usr/local/share/arduino/libraries
|
||||
- rm -rf /usr/local/share/arduino/libraries/RobotIRremote
|
||||
- wget https://github.com/markszabo/IRremoteESP8266/archive/v2.1.1.zip -O /tmp/IRremoteESP8266.zip
|
||||
- wget https://github.com/markszabo/IRremoteESP8266/archive/v2.2.0.zip -O /tmp/IRremoteESP8266.zip
|
||||
- unzip /tmp/IRremoteESP8266.zip -d /usr/local/share/arduino/libraries
|
||||
- git clone https://github.com/ekstrand/ESP8266wifi /usr/local/share/arduino/libraries/ESP8266wifi
|
||||
- git clone https://github.com/1technophile/NewRemoteSwitch /usr/local/share/arduino/libraries/NewRemoteSwitch
|
||||
|
||||
+7
-2
@@ -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);
|
||||
|
||||
+1
-1
Submodule libraries/IRremote updated: eb7a0bee7d...20a4d97f61.
Submodule libraries/IRremoteESP8266 updated: bad6676cae...9bc6dfb3e1.
Submodule libraries/NewRemoteSwitch updated: 0e8e8ce25a...8eb980ef6f.
Reference in new issue
Block a user