diff --git a/BITsIRReciver.h b/BITsIRReciver.h index b0cae0835c19ae6d18a0d756ee29270c6e9098ff..c879fef4f9e9f598e31290f10c63c21a3d880b25 100644 --- a/BITsIRReciver.h +++ b/BITsIRReciver.h @@ -28,7 +28,7 @@ * 8 Button | 82 * * 9 Button | 74 * * ****************************************** */ - +#define IR_USE_AVR_TIMER3 #include <IRremote.h> IRrecv ir_reciver(IR_PIN); decode_results results; @@ -47,13 +47,16 @@ public: { ir_command = ir_reciver.decodedIRData.command; ir_reciver.resume(); - return ir_command; } + else + { + ir_command = 0; + } + return ir_command; }; private: int ir_command; - }; #endif \ No newline at end of file