Skip to content

Commit

Permalink
fix led gipo
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 8, 2024
1 parent ddcc15f commit ffa7590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShellyPlus2PM/shelly_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void CreatePeripherals(std::vector<std::unique_ptr<Input>> *inputs,
int pin1 = new_rev ? 5 : SWITCH1_GPIO;

auto *in1 = new InputPin(1, pin1, 1, MGOS_GPIO_PULL_NONE, true);
in1->AddHandler(std::bind(&HandleInputResetSequence, in1, 4, _1, _2));
in1->AddHandler(std::bind(&HandleInputResetSequence, in1, LED_GPIO, _1, _2));
in1->Init();
inputs->emplace_back(in1);
auto *in2 = new InputPin(2, SWITCH2_GPIO, 1, MGOS_GPIO_PULL_NONE, false);
Expand Down

0 comments on commit ffa7590

Please sign in to comment.