Skip to content

Commit

Permalink
fix very old bug that affected Plus1PM update
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 7, 2024
1 parent ddcc15f commit a5e2590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShellyPlus1PM/shelly_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void CreatePeripherals(std::vector<std::unique_ptr<Input>> *inputs,
nvs_flash_init_partition(kNVSPartitionName);
outputs->emplace_back(new OutputPin(1, RELAY1_GPIO, 1));
auto *in = new InputPin(1, SWITCH1_GPIO, 1, MGOS_GPIO_PULL_NONE, true);
in->AddHandler(std::bind(&HandleInputResetSequence, in, LED_GPIO, _1, _2));
in->AddHandler(std::bind(&HandleInputResetSequence, in, SWITCH1_GPIO, _1, _2));
in->Init();
inputs->emplace_back(in);

Expand Down

0 comments on commit a5e2590

Please sign in to comment.