What happens if you change this section:
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
if(results.value == 0xc05ccc){
irsend.sendRC6(0xc05ccc, 24); // sky tv guide
delay(40);
Serial.print("sky tv guide"); //just to see whats going on
}
to this:
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
if(results.value == 0xc05ccc){
irsend.sendRC6(0xc05ccc, 24); // sky tv guide
delay(40);
Serial.print("sky tv guide"); //just to see whats going on
}
irrecv.resume(); // Receive the next value
}
Or is the problem that you're retransmitting the same code you receive, so you're getting positive feedback?