diff -u -r -N irmp_old/irmp.c irmp/irmp.c
--- irmp_old/irmp.c	2014-09-19 15:26:00.000000000 +0200
+++ irmp/irmp.c	2014-10-12 19:03:13.000000000 +0200
@@ -1801,6 +1801,8 @@
 #else                                                                   // AVR
     IRMP_PORT &= ~(1<<IRMP_BIT);                                        // deactivate pullup
     IRMP_DDR &= ~(1<<IRMP_BIT);                                         // set pin to input
+    IRMP_PORT &= ~(1<<IRMP_BIT2);                                        // deactivate pullup
+    IRMP_DDR &= ~(1<<IRMP_BIT2);                                         // set pin to input
 #endif
 
 #if IRMP_LOGGING == 1
diff -u -r -N irmp_old/irmp.h irmp/irmp.h
--- irmp_old/irmp.h	2014-09-15 12:29:42.000000000 +0200
+++ irmp/irmp.h	2014-10-12 19:02:54.000000000 +0200
@@ -28,7 +28,8 @@
 #  define IRMP_DDR                              CONCAT(DDR, IRMP_PORT_LETTER)
 #  define IRMP_PIN                              CONCAT(PIN, IRMP_PORT_LETTER)
 #  define IRMP_BIT                              IRMP_BIT_NUMBER
-#  define input(x)                              ((x) & (1 << IRMP_BIT))
+#  define IRMP_BIT2                              IRMP_BIT_NUMBER2
+#  define input(x)                              (((x) & ((1 << IRMP_BIT) | (1 << IRMP_BIT2))) == ((1 << IRMP_BIT) | (1 << IRMP_BIT2)))
 #elif defined (PIC_C18)
 #  define input(x)                              (x)
 #elif defined (PIC_CCS)
diff -u -r -N irmp_old/irmpconfig.h irmp/irmpconfig.h
--- irmp_old/irmpconfig.h	2014-09-16 16:05:12.000000000 +0200
+++ irmp/irmpconfig.h	2014-10-12 19:02:54.000000000 +0200
@@ -99,6 +99,7 @@
 #if defined (ATMEL_AVR)                                                 // use PB6 as IR input on AVR
 #  define IRMP_PORT_LETTER                      B
 #  define IRMP_BIT_NUMBER                       6
+#  define IRMP_BIT_NUMBER2                     5
 
 /*---------------------------------------------------------------------------------------------------------------------------------------------------
  * Change hardware pin here for PIC C18 or XC8 compiler
