]> cloudbase.mooo.com Git - irmp.git/commitdiff
corrected modulation frequency for denon protocol in irsnd.c, corrected #if for toggl...
authorukw <ukw@aeb2e35e-bfc4-4214-b83c-9e8de998ed28>
Tue, 25 Jan 2011 17:06:01 +0000 (17:06 +0000)
committerukw <ukw@aeb2e35e-bfc4-4214-b83c-9e8de998ed28>
Tue, 25 Jan 2011 17:06:01 +0000 (17:06 +0000)
git-svn-id: svn://mikrocontroller.net/irmp@52 aeb2e35e-bfc4-4214-b83c-9e8de998ed28

README.txt
irmp.h
irsnd.c

index 147694edec295a514fcfcff660793da443b685c0..41362d12be0bc7806ea5723278370650f17ba53e 100644 (file)
@@ -1,8 +1,8 @@
 IRMP - Infrared Multi Protocol Decoder\r
 --------------------------------------\r
 \r
-Version IRMP:  1.9.0  18.01.2010\r
-Version IRSND: 1.9.0  18.01.2010\r
+Version IRMP:  1.9.1  25.01.2010\r
+Version IRSND: 1.9.1  25.01.2010\r
 \r
 Dokumentation:\r
  \r
diff --git a/irmp.h b/irmp.h
index 580033091c50821f80789309edd517898e715129..5ee45710a3357085e47cf47c852da037ce96b8ce 100644 (file)
--- a/irmp.h
+++ b/irmp.h
@@ -55,7 +55,7 @@ typedef uint8_t     PAUSE_LEN;
 #define IRMP_KASEIKYO_PROTOCOL                   5              // Kaseikyo (Panasonic etc)\r
 #define IRMP_RECS80_PROTOCOL                     6              // Philips, Thomson, Nordmende, Telefunken, Saba\r
 #define IRMP_RC5_PROTOCOL                        7              // Philips etc\r
-#define IRMP_DENON_PROTOCOL                      8              // Denon\r
+#define IRMP_DENON_PROTOCOL                      8              // Denon, Sharp\r
 #define IRMP_RC6_PROTOCOL                        9              // Philips etc\r
 #define IRMP_SAMSUNG32_PROTOCOL                 10              // Samsung32: no sync pulse at bit 16, length 32 instead of 37\r
 #define IRMP_APPLE_PROTOCOL                     11              // Apple, very similar to NEC\r
diff --git a/irsnd.c b/irsnd.c
index 3cbe8d5ff2ff6775337d2a87ba93c80a8208cd3f..da0996086486018b4d35fff6163d696a3f7988bb 100644 (file)
--- a/irsnd.c
+++ b/irsnd.c
@@ -331,7 +331,7 @@ irsnd_send_data (IRMP_DATA * irmp_data_p, uint8_t do_wait)
 #if IRSND_SUPPORT_RC5_PROTOCOL == 1\r
     static uint8_t  toggle_bit_rc5;\r
 #endif\r
-#if IRSND_SUPPORT_RC5_PROTOCOL == 1\r
+#if IRSND_SUPPORT_RC6_PROTOCOL == 1 || IRSND_SUPPORT_RC6A_PROTOCOL == 1\r
     static uint8_t  toggle_bit_rc6;\r
 #endif\r
     uint16_t        address;\r
@@ -1006,7 +1006,7 @@ irsnd_ISR (void)
                         n_auto_repetitions          = DENON_FRAMES;                                 // 2 frames, 2nd with inverted command\r
                         auto_repetition_pause_len   = DENON_AUTO_REPETITION_PAUSE_LEN;              // 65 ms pause after 1st frame\r
                         repeat_frame_pause_len      = DENON_FRAME_REPEAT_PAUSE_LEN;\r
-                        irsnd_set_freq (IRSND_FREQ_38_KHZ);                                         // in theory 32kHz, in practice 38kHz\r
+                        irsnd_set_freq (IRSND_FREQ_36_KHZ);                                         // in theory 32kHz, in practice 36kHz is better\r
                         break;\r
                     }\r
 #endif\r