#define RC5_BIT_TIME 889.0e-6 // 889 usec pulse/pause\r
#define RC5_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms\r
\r
#define RC5_BIT_TIME 889.0e-6 // 889 usec pulse/pause\r
#define RC5_FRAME_REPEAT_PAUSE_TIME 45.0e-3 // frame repeat after 45ms\r
\r
-#define RC5_ADDRESS_OFFSET 2 // skip 2 bits (2nd start + 1 toggle)\r
-#define RC5_ADDRESS_LEN 5 // read 5 address bits\r
+#define RC5_ADDRESS_OFFSET 1 // skip 1 bit (2nd start)\r
+#define RC5_ADDRESS_LEN 6 // read 1 toggle bit (for key repetition detection) + 5 address bits\r
#define RC5_COMMAND_OFFSET 7 // skip 5 bits (2nd start + 1 toggle + 5 address)\r
#define RC5_COMMAND_LEN 6 // read 6 command bits\r
#define RC5_COMPLETE_DATA_LEN 13 // complete length\r
#define RC5_COMMAND_OFFSET 7 // skip 5 bits (2nd start + 1 toggle + 5 address)\r
#define RC5_COMMAND_LEN 6 // read 6 command bits\r
#define RC5_COMPLETE_DATA_LEN 13 // complete length\r
\r
#define NIKON_START_BIT_PULSE_TIME 2200.0e-6 // 2200 usec pulse\r
#define NIKON_START_BIT_PAUSE_TIME 27100.0e-6 // 27100 usec pause\r
\r
#define NIKON_START_BIT_PULSE_TIME 2200.0e-6 // 2200 usec pulse\r
#define NIKON_START_BIT_PAUSE_TIME 27100.0e-6 // 27100 usec pause\r
#define NIKON_1_PAUSE_TIME 3500.0e-6 // 3500 usec pause\r
#define NIKON_0_PAUSE_TIME 1500.0e-6 // 1500 usec pause\r
#define NIKON_FRAME_REPEAT_PAUSE_TIME 60.0e-3 // frame repeat after 60ms\r
#define NIKON_1_PAUSE_TIME 3500.0e-6 // 3500 usec pause\r
#define NIKON_0_PAUSE_TIME 1500.0e-6 // 1500 usec pause\r
#define NIKON_FRAME_REPEAT_PAUSE_TIME 60.0e-3 // frame repeat after 60ms\r