mirror of
https://github.com/nekorevend/esphome-emporia-vue-utility.git
synced 2026-01-10 05:10:40 -07:00
Bug in kwh_returned value
This commit is contained in:
@@ -381,7 +381,7 @@ class EmporiaVueUtility : public Component, public UARTDevice {
|
||||
if (returned > UINT32_MAX - wh_diff) {
|
||||
returned -= UINT32_MAX - wh_diff;
|
||||
} else {
|
||||
returned += wh_diff;
|
||||
returned -= wh_diff;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user