diff --git a/PylontechMonitoring.ino b/PylontechMonitoring.ino
index 3e14205..48f086e 100644
--- a/PylontechMonitoring.ino
+++ b/PylontechMonitoring.ino
@@ -227,14 +227,7 @@ void handleReq()
respOK = sendCommandAndReadSerialResponse(server.arg("code").c_str());
}
- if(respOK)
- {
- server.send(200, "text/plain", g_szRecvBuff);
- }
- else
- {
- server.send(500, "text/plain", "????");
- }
+ handleRoot();
}
void handleJsonOut()
@@ -271,8 +264,10 @@ void handleRoot() {
strncat(szTmp, "
Runtime log