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;