Skip to content

Commit

Permalink
Fix CM160 energy calculation factor (#2427)
Browse files Browse the repository at this point in the history
Result compares to the CM160 LCD display values when applying a x1.12 between readings
  • Loading branch information
diepeterpan authored Mar 17, 2023
1 parent ecb0b36 commit d07cd16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/oregon_scientific.c
Original file line number Diff line number Diff line change
Expand Up @@ -825,8 +825,8 @@ static int oregon_scientific_v3_decode(r_device *decoder, bitbuffer_t *bitbuffer
(swap_nibbles(msg[8]) << 20) | (swap_nibbles(msg[7]) << 12) |
(swap_nibbles(msg[6]) << 4) | (msg[5]&0xf);

double total_kWh = total_amps * 230.0 / 3600.0 / 1000.0; // Assuming device is running in 230V country
// result compares to municpal box kWh count in Cape Town South Africa
double total_kWh = total_amps * 230.0 / 3600.0 / 1000.0 * 1.12; // Assuming device is running in 230V country
//result compares to the CM160 LCD display values when * 1.12 between readings

/* clang-format off */
data = data_make(
Expand Down

0 comments on commit d07cd16

Please sign in to comment.