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

VirtualKeypad-Web compilation error #315

Open
jpmorrison opened this issue Apr 12, 2023 · 1 comment
Open

VirtualKeypad-Web compilation error #315

jpmorrison opened this issue Apr 12, 2023 · 1 comment

Comments

@jpmorrison
Copy link

Won't compile with current ArduinoJson. Simple fix adding: const

@@ -1644,7 +1644,7 @@
         if (!err) {
           JsonObject root = doc.as<JsonObject>();
           if (root.containsKey("btn_single_click")) {
-            char *tmp = (char *)root["btn_single_click"].as<char*>();
+            char *tmp = (char *)root["btn_single_click"].as<const char*>();
             char * const sep_at = strchr(tmp, '_');
             if (sep_at != NULL)            {
               *sep_at = '\0';


@francofischer
Copy link

Thanks for post the solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants