Skip to content

Commit

Permalink
remove reset handler for add inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
markirb committed Aug 29, 2024
1 parent 715225a commit 51d1c19
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/ShellyRGBW2/shelly_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,14 @@ void CreatePeripherals(std::vector<std::unique_ptr<Input>> *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
Expand Down

0 comments on commit 51d1c19

Please sign in to comment.