Page 5 of 5

Re: Looking for users with experience using RC5 remote control component

Posted: Sat May 14, 2022 1:09 pm
by jan.didden
With Martin's help I'm making good progress in the NEC IR decoding routines, but hit a snag with the compiler I don't grok.
Would appreciate iof anyone (Ben or 'the other' Martin) could take a look.

The problem appears when trying to use Timer1 (handle Timer2 in the panel).
See attachment. The C-file shows the handler code, two interrupts (pin IOC and Timer1) with each a defined int routine, yet the last statement throws a compile error (2nd attachment).
Anyone has an idea where this comes from or what I did wrong?

Edit: added a 3rd attachment showing the C-code with a single int for comparison. Error in the C compiler?

Jan