Skip to content

Commit

Permalink
Update driver_flowiq2200.h
Browse files Browse the repository at this point in the history
  • Loading branch information
anhorbc authored Aug 23, 2024
1 parent 932cb48 commit f72b6a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion driver_flowiq2200.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f72b6a4

Please sign in to comment.