From 2147bf0788dc0e518f435316c401ddd6270d1183 Mon Sep 17 00:00:00 2001 From: DashyFox Date: Thu, 23 May 2024 14:39:47 +0300 Subject: [PATCH] upd --- IR_config.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/IR_config.cpp b/IR_config.cpp index 9ddae25..7acf1bc 100644 --- a/IR_config.cpp +++ b/IR_config.cpp @@ -4,6 +4,7 @@ void IR_FOX::setPin(uint8_t pin){ this->pin = pin; port = digitalPinToPort(pin); mask = digitalPinToBitMask(pin); + pinMode(pin, INPUT_PULLUP); } void IR_FOX::checkAddressRuleApply(uint16_t address, uint16_t id, bool &flag)