fix error in debug mode

This commit is contained in:
Paul
2020-11-08 20:26:36 +01:00
parent 9285180f2d
commit 9662d60c94

View File

@@ -98,7 +98,7 @@ void WebAPIService::webAPIService(AsyncWebServerRequest * request) {
cmd.c_str(), cmd.c_str(),
data.c_str(), data.c_str(),
id.c_str(), id.c_str(),
ok ? F("OK") : F("Invalid")); ok ? PSTR("OK") : PSTR("Invalid"));
EMSESP::logger().info(debug.c_str()); EMSESP::logger().info(debug.c_str());
if (json.size()) { if (json.size()) {
char buffer2[EMSESP_MAX_JSON_SIZE_LARGE]; char buffer2[EMSESP_MAX_JSON_SIZE_LARGE];