From 39244ec0faf19bc6de8042fba9790572407a637f Mon Sep 17 00:00:00 2001 From: Adrian <35405447+ascillato@users.noreply.github.com> Date: Sun, 1 Apr 2018 12:27:23 -0300 Subject: [PATCH] Make webpage translatable Make webpage translatable #38 modification to feedback_register_action to accept a label for the button --- esp-knx-ip.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esp-knx-ip.cpp b/esp-knx-ip.cpp index 1c118e1..c807191 100644 --- a/esp-knx-ip.cpp +++ b/esp-knx-ip.cpp @@ -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; @@ -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;