Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make webpage translatable #46

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion esp-knx-ip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ feedback_id_t ESPKNXIP::feedback_register_bool(String name, bool *value, enable_
return id;
}

feedback_id_t ESPKNXIP::feedback_register_action(String name, feedback_action_fptr_t value, void *arg, enable_condition_t cond)
feedback_id_t ESPKNXIP::feedback_register_action(String name, feedback_action_fptr_t value, String button_text, void *arg, enable_condition_t cond)
{
if (registered_feedbacks >= MAX_FEEDBACKS)
return -1;
Expand All @@ -321,6 +321,7 @@ feedback_id_t ESPKNXIP::feedback_register_action(String name, feedback_action_fp

feedbacks[id].type = FEEDBACK_TYPE_ACTION;
feedbacks[id].name = name;
feedbacks[id].button_text = button_text;
feedbacks[id].cond = cond;
feedbacks[id].data = (void *)value;
feedbacks[id].options.action_options.arg = arg;
Expand Down