From 23744de13e01aebe0189ddd00bcdd1a2ef6bf6ef Mon Sep 17 00:00:00 2001 From: "max.mustermann" <timo.altan@th-koeln.de> Date: Tue, 8 Mar 2022 11:13:49 +0100 Subject: [PATCH] . --- BITsIRReciver.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/BITsIRReciver.h b/BITsIRReciver.h index b0cae08..c879fef 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 -- GitLab