I guess the next strategy would be to put something in the ir_read() function to discard every Nth code received.

My idea was to use add_timer in the case a code is received that should be translated. When the second code arrives, the timer is checked for expiration. This would allow a second parameter in the config file to set the delay time. So a config file would look like :

# original code:new code:delay time in ms
0x0000AD0A:0x0000B914:100
0x0000AD0B:0x0000B915:100
0x0000AD43:0x0000B90B:100
0x0000AD42:0x0000B90A:100
0x0000AD12:0x0000B95E:100
0x0000AD1A:0x0000B91F:500

this way you could add multiple timers and different delays for different codes... Dunno how many timers are allowed though.

Frank van Gestel
_________________________
Frank van Gestel