Skip to content

Commit

Permalink
use const char * instead of arduino String
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Jan 5, 2023
1 parent 8b2466d commit 4b3a0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ void EMSESPShell::add_console_commands() {
if (return_code == CommandRet::OK && json.size()) {
if (json.containsKey("api_data")) {
JsonVariant data = json["api_data"];
shell.println(data.as<String>());
shell.println(data.as<const char *>());
return;
}
serializeJsonPretty(doc, shell);
Expand Down

0 comments on commit 4b3a0bf

Please sign in to comment.