mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
incorporated Michael's changes https://github.com/emsesp/EMS-ESP32/pull/2027
This commit is contained in:
@@ -552,7 +552,7 @@ static void setup_commands(std::shared_ptr<Commands> & commands) {
|
||||
|
||||
if (return_code == CommandRet::OK) {
|
||||
if (json.size()) {
|
||||
if (json["api_data"].is<String>()) {
|
||||
if (json["api_data"].is<std::string>()) {
|
||||
String data = json["api_data"];
|
||||
shell.println(data.c_str());
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user