From f72b6a430da3bbf35d57a9f35275fe21b61c7d30 Mon Sep 17 00:00:00 2001 From: anhorbc <60405237+anhorbc@users.noreply.github.com> Date: Fri, 23 Aug 2024 13:44:34 +0200 Subject: [PATCH] Update driver_flowiq2200.h --- driver_flowiq2200.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/driver_flowiq2200.h b/driver_flowiq2200.h index 8e450f0..9ab5c66 100644 --- a/driver_flowiq2200.h +++ b/driver_flowiq2200.h @@ -45,8 +45,9 @@ struct Flowiq2200: Driver ret_val = this->get_0413(telegram); } else if ((tpl_ci_field == 0x79) && (l_field > 49)) { + ESP_LOGVV(TAG, "Found compressed frame"); uint32_t usage{0}; - uint8_t i = 57; + uint8_t i = 28; usage = (((uint32_t)telegram[i+3] << 24) | ((uint32_t)telegram[i+2] << 16) | ((uint32_t)telegram[i+1] << 8) | ((uint32_t)telegram[i+0])); ret_val = usage / 1000.0;