MCPcopy Create free account
hub / github.com/Arduino-IRremote/Arduino-IRremote / getMaximumSpaceTicksFromRawData

Method getMaximumSpaceTicksFromRawData

src/IRReceive.hpp:1922–1931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1920 return tMaximumTick;
1921}
1922uint8_t IRrecv::getMaximumSpaceTicksFromRawData() {
1923 uint8_t tMaximumTick = 0;
1924 for (IRRawlenType i = 4; i < decodedIRData.rawlen - 2; i += 2) { // Skip leading start and trailing stop bit.
1925 auto tTick = irparams.rawbuf[i];
1926 if (tMaximumTick < tTick) {
1927 tMaximumTick = tTick;
1928 }
1929 }
1930 return tMaximumTick;
1931}
1932
1933/*
1934 * The optimizing compiler internally generates this function, if getMaximumMarkTicksFromRawData() and getMaximumSpaceTicksFromRawData() is used.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected