From 85aba316d6e37615f4b1c0c892c6f10fd279753e Mon Sep 17 00:00:00 2001 From: anhorbc <60405237+anhorbc@users.noreply.github.com> Date: Fri, 23 Aug 2024 13:52:16 +0200 Subject: [PATCH] Update driver_flowiq2200.h --- driver_flowiq2200.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver_flowiq2200.h b/driver_flowiq2200.h index 9ab5c66..e8f4dd5 100644 --- a/driver_flowiq2200.h +++ b/driver_flowiq2200.h @@ -47,7 +47,7 @@ struct Flowiq2200: Driver else if ((tpl_ci_field == 0x79) && (l_field > 49)) { ESP_LOGVV(TAG, "Found compressed frame"); uint32_t usage{0}; - uint8_t i = 28; + uint8_t i = 29; 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;