From aa862d8f2c0f8c712bcc27624428598d3c5b1270 Mon Sep 17 00:00:00 2001 From: DashyFox Date: Thu, 29 Aug 2024 17:06:10 +0300 Subject: [PATCH] default addr --- IR_Decoder.h | 2 +- IR_Encoder.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IR_Decoder.h b/IR_Decoder.h index 27dca9f..bff9666 100644 --- a/IR_Decoder.h +++ b/IR_Decoder.h @@ -25,7 +25,7 @@ public: PacketTypes::BasePack gotRaw; // IR_Decoder(); - IR_Decoder(const uint8_t pin, uint16_t addr, IR_Encoder *encPair = nullptr, bool autoHandle = true); + IR_Decoder(const uint8_t pin, uint16_t addr = 0, IR_Encoder *encPair = nullptr, bool autoHandle = true); std::function operator()(); diff --git a/IR_Encoder.h b/IR_Encoder.h index eed42be..ee5df02 100644 --- a/IR_Encoder.h +++ b/IR_Encoder.h @@ -16,7 +16,7 @@ public: /// @param addr Адрес передатчика /// @param pin Вывод передатчика /// @param decPair Приёмник, для которого отключается приём в момент передачи передатчиком - IR_Encoder(uint8_t pin, uint16_t addr, IR_DecoderRaw *decPair = nullptr, bool autoHandle = true); + IR_Encoder(uint8_t pin, uint16_t addr = 0, IR_DecoderRaw *decPair = nullptr, bool autoHandle = true); static void isr(); void enable();