TIMSK = 1 << OCIE1A; // OCIE1A: Interrupt by timer compare (use TIMSK for ATMEGA162)\r
#else\r
TIMSK1 = 1 << OCIE1A; // OCIE1A: Interrupt by timer compare (use TIMSK for ATMEGA162)\r
-#endif // __AVR...\r
+#endif // __AVR...\r
}\r
\r
/*---------------------------------------------------------------------------------------------------------------------------------------------------\r
for (;;)\r
{\r
irmp_data.protocol = IRMP_NEC_PROTOCOL;\r
- irmp_data.address = 0x00FF;\r
- irmp_data.command = 0x0001;\r
+ irmp_data.address = 0x00FF;\r
+ irmp_data.command = 0x0001;\r
+ irmp_data.flags = 0;\r
\r
irsnd_send_data (&irmp_data);\r
_delay_ms (1000);\r
for (;;)\r
{\r
irmp_data.protocol = IRMP_NEC_PROTOCOL;\r
- irmp_data.address = 0x00FF;\r
- irmp_data.command = 0x0001;\r
+ irmp_data.address = 0x00FF;\r
+ irmp_data.command = 0x0001;\r
+ irmp_data.flags = 0;\r
\r
- irsnd_send_data (&irmp_data);\r
+ irsnd_send_data (&irmp_data, TRUE);\r
_delay_ms (1000);\r
}\r
}\r