Skip to content
Snippets Groups Projects
Commit 0a7797fd authored by Jens Nolte's avatar Jens Nolte
Browse files

Fix add_button pin selection

parent 3c0f5406
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,7 @@ void add_button(gpio_num_t gpio_num, std::function<void()> on_press, std::functi
}
void add_button(gpio_num_t gpio, std::string topic, std::string message) {
add_button(GPIO_NUM_18, [topic, message](){ publish_message(topic, message); });
add_button(gpio, [topic, message](){ publish_message(topic, message); });
}
void set_status_led(uint32_t level) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment