void PDCreceive::checkIR(IRrecv irrecv, decode_results results) { if (irrecv.decode(&results)) { // Serial.println("got something"); IR_busy = true; irrecv.resume(); storeData(results.value); } }
void verify(unsigned long val, int bits, int type) { irsenddummy.useDummyBuf(); irrecv.decode(&results); Serial.print("Testing "); Serial.print(val, HEX); if (results.value == val && results.bits == bits && results.decode_type == type) { Serial.println(": OK"); } else { Serial.println(": Error"); dump(&results); } }