From 22f7cd68ca9c6c5ec8de663dbdcde64d1f9f4b3d Mon Sep 17 00:00:00 2001 From: DashyFox Date: Wed, 28 Feb 2024 09:43:59 +0300 Subject: [PATCH] removed unused parametr --- IR-protocol.ino | 2 +- IR_Encoder.cpp | 2 +- IR_Encoder.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IR-protocol.ino b/IR-protocol.ino index 2333e7e..8e93214 100644 --- a/IR-protocol.ino +++ b/IR-protocol.ino @@ -22,7 +22,7 @@ IR_Decoder decForward(2, 555); IR_Decoder decBackward(3, 777); -IR_Encoder encForward(42, encForward_PIN, &decBackward); +IR_Encoder encForward(42, &decBackward); // IR_Encoder encBackward(321, encBackward_PIN); // IR_Encoder encTree(325, A2); diff --git a/IR_Encoder.cpp b/IR_Encoder.cpp index 12b40e9..03c16f3 100644 --- a/IR_Encoder.cpp +++ b/IR_Encoder.cpp @@ -5,7 +5,7 @@ #define ISR_Out 10 #define TestOut 13 -IR_Encoder::IR_Encoder(uint16_t addr, uint8_t pin, IR_DecoderRaw* decPair = nullptr) { +IR_Encoder::IR_Encoder(uint16_t addr, IR_DecoderRaw* decPair = nullptr) { id = addr; this->decPair = decPair; signal = noSignal; diff --git a/IR_Encoder.h b/IR_Encoder.h index be2c400..32c42e7 100644 --- a/IR_Encoder.h +++ b/IR_Encoder.h @@ -18,7 +18,7 @@ public: /// @param pin Вывод передатчика /// @param tune Подстройка несущей частоты /// @param decPair Приёмник, для которого отключается приём в момент передачи передатчиком - IR_Encoder(uint16_t addr, uint8_t pin, IR_DecoderRaw* decPair = nullptr); + IR_Encoder(uint16_t addr, IR_DecoderRaw* decPair = nullptr); static void timerSetup() { // TIMER2 Ini