Comments (5)
Thanks for reporting.
I documented it in the sources now.
IRDATA_FLAGS_IS_AUTO_REPEAT means: The current repeat frame is a repeat, that is always sent after a regular frame and cannot be avoided. Only specified for protocols DENON, and LEGO.
IRDATA_FLAGS_IS_REPEAT means: The gap between the preceding frame is as smaller than the maximum gap expected for a repeat. !!!We do not check for changed command or address!!!
from arduino-irremote.
We do not check for changed command or address!!!
ah, maybe at link level most of this info (IRDATA_FLAGS) is useful. But at application level, there is no use for this.
This detection can be done at app level but really each decoder is the most suited place to do it accurately .
Can you think of it please ? Use bit 0x20 for that.
from arduino-irremote.
In many protocols, it is not possible to distinguish between two fast presses of the same button and one long press.
And it is almost not possible to press 2 different buttons on the remote within around 100 ms.
And the check consumes around 85 bytes of program memory.
from arduino-irremote.
Yeah, but as you know, you also wrote the Sender. And the sender has no problem sending codes at 'normal' throughput. Inserting a fake 'human' delay makes zero sense.
Detecting this reliably is mandatory. Without that, it simply means that all Senders can be removed from the repo except for one that has to be to made resistant to this usage.
The advantage of having them all (for sending) is choosing the one with less resources usage on one side, or best error detection, or shorter frames or compatible with the boxe of remote you mistakenly ordered ;)
At least do it between ifdefs for one protocol (say RC6). It will be 500% better done than any other contrib.
from arduino-irremote.
ArminJo added theses lines in commit ad0425f
and every decoded protocol is calling it.
#if defined(ENABLE_FULL_REPEAT_CHECK)
&& decodedIRData.address == lastDecodedAddress && decodedIRData.command == lastDecodedCommand /* requires around 85 bytes program space */
#endif
IRDATA_FLAGS_IS_REPEAT can be trusted.
from arduino-irremote.
Related Issues (20)
- TinyIRReceiver does not work with ESP32C3 [Bug]: HOT 5
- [Bug]: function for 64 bit integer size_t println() not supported HOT 2
- [Bug]: IR_USE_AVR_TIMER1 doesn`t work in attiny167 HOT 11
- [Bug]: Sony command not sending correctly HOT 2
- [Bug]: SendProntoDemo causes bootloop on ESP8266 HOT 1
- [Bug]: compiler warning HOT 1
- [Bug]: Serial was referenced by IRremote - Error when using hardware serial on other library without using Serial object HOT 1
- [Bug]: Doesn't compile for Teensy 4.1 HOT 7
- ESP32 mark timing errors HOT 1
- [Bug]: TinyReceiver throwing ISR not in IRAM! on ESP8266 HOT 1
- [Bug]: BluePill (STM32F103C8) not sending data trough IR diode HOT 3
- [Bug]: Arduino UNO R4 transmit not working as expected HOT 1
- Cannot change IR_SEND_PIN dynamically HOT 3
- [Bug]: SimpleSender cannot compile IrSender code instruction copied from ReceiveDemo output from a Mitsubishi IR remote HOT 2
- [Bug]: last two bytes incorrect of capture of Mitsubishi HVAC IR HOT 29
- [Bug]: Can't end() and begin() on Arduino Uno R4 Wifi HOT 1
- MagiQuest New Encoding Scheme HOT 3
- [Bug]: `decode()` does not work when using `IrReceiver` inside a class. HOT 3
- [Bug]: The library freezes out my arduino
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-irremote.