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 b851253 commit 6b5383c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver_flowiq2200.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct Flowiq2200: Driver
else if ((tpl_ci_field == 0x79) && (l_field > 49)) {
ESP_LOGD(TAG, "Received frame is compressed");
uint32_t usage{0};
uint8_t i = 34;
uint8_t i = 32;
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 6b5383c

Please sign in to comment.