Skip to content

Commit 27fa380

Browse files
committed
Repeat detection gap time adjusted
1 parent 9495951 commit 27fa380

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Digispark boards are tested with the recommended [ATTinyCore](https://github.com
226226
- ATmega64, 128
227227
- ATmega4809 (Nano every)
228228
- ATtiny84, 85, 167 (Digispark + Digispark Pro)
229-
- SAMD (Zero, MKR*, **but not DUE**)
229+
- SAMD (Zero, MKR*, **but not DUE, which is SAM architecture**)
230230
- ESP32
231231
- ESP8266. [This fork](https://github.com/crankyoldgit/IRremoteESP8266) supports an [impressive set of protocols](https://github.com/crankyoldgit/IRremoteESP8266/blob/master/SupportedProtocols.md).
232232
- Sparkfun Pro Micro

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
The latest version may not be released!
33
## 3.4.0
44
- Added LG2 protocol.
5+
- Added ATtiny167 (Digispark Pro) support.
56

67
## 3.3.0
78
- Fix errors if LED_BUILTIN is not defined.

src/ir_JVC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ bool IRrecv::decodeJVC() {
114114
* Check for repeat
115115
* Check leading space and first and last mark length
116116
*/
117-
if (decodedIRData.rawDataPtr->rawbuf[0] < ((JVC_REPEAT_SPACE + (JVC_REPEAT_SPACE / 2) / MICROS_PER_TICK))
117+
if (decodedIRData.rawDataPtr->rawbuf[0] < ((JVC_REPEAT_SPACE + (JVC_REPEAT_SPACE / 4) / MICROS_PER_TICK))
118118
&& matchMark(decodedIRData.rawDataPtr->rawbuf[1], JVC_BIT_MARK)
119119
&& matchMark(decodedIRData.rawDataPtr->rawbuf[decodedIRData.rawDataPtr->rawlen - 1], JVC_BIT_MARK)) {
120120
/*

src/ir_RC5_RC6.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ bool IRrecv::decodeRC6() {
451451
}
452452

453453
// check for repeat, do not check toggle bit yet
454-
if (decodedIRData.rawDataPtr->rawbuf[0] < ((RC6_REPEAT_SPACE + (RC6_REPEAT_SPACE / 2)) / MICROS_PER_TICK)) {
454+
if (decodedIRData.rawDataPtr->rawbuf[0] < ((RC6_REPEAT_SPACE + (RC6_REPEAT_SPACE / 4)) / MICROS_PER_TICK)) {
455455
decodedIRData.flags |= IRDATA_FLAGS_IS_REPEAT;
456456
}
457457

src/ir_Template.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ bool IRrecv::decodeShuzu() {
235235
/*
236236
* Check for repeat
237237
*/
238-
if (decodedIRData.rawDataPtr->rawbuf[0] < ((SHUZU_REPEAT_SPACE + (SHUZU_REPEAT_SPACE / 2)) / MICROS_PER_TICK)) {
238+
if (decodedIRData.rawDataPtr->rawbuf[0] < ((SHUZU_REPEAT_SPACE + (SHUZU_REPEAT_SPACE / 4)) / MICROS_PER_TICK)) {
239239
decodedIRData.flags = IRDATA_FLAGS_IS_REPEAT | IRDATA_FLAGS_IS_LSB_FIRST;
240240
}
241241
decodedIRData.command = tCommand;

0 commit comments

Comments
 (0)