mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix command with command as value, #1740
This commit is contained in:
@@ -173,10 +173,9 @@ uint8_t Command::process(const char * path, const bool is_admin, const JsonObjec
|
|||||||
if (!output.containsKey("api_data")) {
|
if (!output.containsKey("api_data")) {
|
||||||
return CommandRet::INVALID;
|
return CommandRet::INVALID;
|
||||||
}
|
}
|
||||||
String dat = output["api_data"];
|
String dat = output["api_data"].as<String>();
|
||||||
output.clear();
|
output.clear();
|
||||||
input["data"] = dat.c_str();
|
return Command::call(device_type, command_p, dat.c_str(), is_admin, id_n, output);
|
||||||
data = input["data"];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user