From 51d1c19954b29bdaa9ef9ec43e48ac6955f7c37a Mon Sep 17 00:00:00 2001 From: Markus Kirberg Date: Thu, 29 Aug 2024 20:31:08 +0200 Subject: [PATCH] remove reset handler for add inputs --- src/ShellyRGBW2/shelly_init.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ShellyRGBW2/shelly_init.cpp b/src/ShellyRGBW2/shelly_init.cpp index 1a5812fd..687eab7a 100644 --- a/src/ShellyRGBW2/shelly_init.cpp +++ b/src/ShellyRGBW2/shelly_init.cpp @@ -42,17 +42,14 @@ void CreatePeripherals(std::vector> *inputs, #ifdef GPIO_I2 in = new InputPin(2, GPIO_I2, 1, MGOS_GPIO_PULL_NONE, true); - in->AddHandler(std::bind(&HandleInputResetSequence, in, 0, _1, _2)); in->Init(); inputs->emplace_back(in); in = new InputPin(3, GPIO_I3, 1, MGOS_GPIO_PULL_NONE, true); - in->AddHandler(std::bind(&HandleInputResetSequence, in, 0, _1, _2)); in->Init(); inputs->emplace_back(in); in = new InputPin(4, GPIO_I4, 1, MGOS_GPIO_PULL_NONE, true); - in->AddHandler(std::bind(&HandleInputResetSequence, in, 0, _1, _2)); in->Init(); inputs->emplace_back(in); #endif