* Checks if protocol is not detected and detected space between two transmissions * is smaller than known value for protocols (Sony with around 24 ms) * @return true, if CheckForRecordGapsMicros() has printed a message, i.e. gap < 15ms (RECORD_GAP_MICROS_WARNING_THRESHOLD) */
| 1499 | * @return true, if CheckForRecordGapsMicros() has printed a message, i.e. gap < 15ms (RECORD_GAP_MICROS_WARNING_THRESHOLD) |
| 1500 | */ |
| 1501 | bool IRrecv::checkForRecordGapsMicros(Print *aSerial) { |
| 1502 | /* |
| 1503 | * Check if protocol is not detected and detected space between two transmissions |
| 1504 | * is smaller than known value for protocols (Sony with around 24 ms) |
| 1505 | */ |
| 1506 | if (decodedIRData.protocol <= PULSE_DISTANCE |
| 1507 | && decodedIRData.initialGapTicks < (RECORD_GAP_MICROS_WARNING_THRESHOLD / MICROS_PER_TICK)) { |
| 1508 | aSerial->println(); |
| 1509 | aSerial->print(F("Space of ")); |
| 1510 | aSerial->print(decodedIRData.initialGapTicks * MICROS_PER_TICK); |
| 1511 | aSerial->print(F(" us between two detected transmission is smaller than the minimal gap of ")); |
| 1512 | aSerial->print(RECORD_GAP_MICROS_WARNING_THRESHOLD); |
| 1513 | aSerial->println(F(" us known for implemented protocols like NEC, Sony, RC5 etc..")); |
| 1514 | aSerial->println(F("But it can be OK for some yet unsupported protocols, and especially for repeats.")); |
| 1515 | aSerial->println(F("If you get unexpected results, try to increase the RECORD_GAP_MICROS in IRremote.h.")); |
| 1516 | aSerial->println(); |
| 1517 | return true; |
| 1518 | } |
| 1519 | return false; |
| 1520 | } |
| 1521 | |
| 1522 | /********************************************************************************************************************** |
| 1523 | * Print functions |
nothing calls this directly
no outgoing calls
no test coverage detected