X-Git-Url: http://cloudbase.mooo.com/gitweb/irmp.git/blobdiff_plain/4225a882583e3f3f35b5a9ee652d204338059b61..9547ee89a530c866f714f1ce0fafe0f03e0ce83c:/irsndmain.c diff --git a/irsndmain.c b/irsndmain.c index 35470a4..e5a03cb 100644 --- a/irsndmain.c +++ b/irsndmain.c @@ -47,6 +47,7 @@ #include #include #include "irmp.h" +#include "irsndconfig.h" #include "irsnd.h" #endif // CODEVISION @@ -70,7 +71,7 @@ timer_init (void) TIMSK = 1 << OCIE1A; // OCIE1A: Interrupt by timer compare (use TIMSK for ATMEGA162) #else TIMSK1 = 1 << OCIE1A; // OCIE1A: Interrupt by timer compare (use TIMSK for ATMEGA162) -#endif // __AVR... +#endif // __AVR... } /*--------------------------------------------------------------------------------------------------------------------------------------------------- @@ -114,8 +115,9 @@ main (void) for (;;) { irmp_data.protocol = IRMP_NEC_PROTOCOL; - irmp_data.address = 0x00FF; - irmp_data.command = 0x0001; + irmp_data.address = 0x00FF; + irmp_data.command = 0x0001; + irmp_data.flags = 0; irsnd_send_data (&irmp_data); _delay_ms (1000); @@ -137,10 +139,11 @@ main (void) for (;;) { irmp_data.protocol = IRMP_NEC_PROTOCOL; - irmp_data.address = 0x00FF; - irmp_data.command = 0x0001; + irmp_data.address = 0x00FF; + irmp_data.command = 0x0001; + irmp_data.flags = 0; - irsnd_send_data (&irmp_data); + irsnd_send_data (&irmp_data, TRUE); _delay_ms (1000); } }