diff --git a/code/components/jomjol_tfliteclass/server_tflite.cpp b/code/components/jomjol_tfliteclass/server_tflite.cpp index f937a68d..5b9d8bbf 100644 --- a/code/components/jomjol_tfliteclass/server_tflite.cpp +++ b/code/components/jomjol_tfliteclass/server_tflite.cpp @@ -378,22 +378,37 @@ esp_err_t handler_wasserzaehler(httpd_req_t *req) return ESP_OK; } - zw = tfliteflow.getReadout(_rawValue, _noerror); - if (zw.length() > 0) - httpd_resp_sendstr_chunk(req, zw.c_str()); + std::string *status = tfliteflow.getActStatus(); string query = std::string(_query); // ESP_LOGD(TAG, "Query: %s, query.c_str()); if (query.find("full") != std::string::npos) { - string txt, zw; - - std::string *status = tfliteflow.getActStatus(); + string txt; + txt = "
"; if ((countRounds <= 1) && (*status != std::string("Flow finished"))) { // First round not completed yet - txt = ""; txt += "