p18/response/TotalGenerated: kwh -> wh

This commit is contained in:
Evgeny Zinoviev 2021-05-16 02:23:14 +03:00
parent a398da43f8
commit 79251b1c29
2 changed files with 3 additions and 3 deletions

View File

@ -190,12 +190,12 @@ void TotalGenerated::unpack() {
auto data = getData();
std::string buf(data, 8);
kwh = stou(buf);
wh = stou(buf);
}
formattable_ptr TotalGenerated::format(formatter::Format format) {
RETURN_TABLE({
LINE("kwh", "KWh", kwh)
LINE("wh", "Wh", wh)
});
}

View File

@ -197,7 +197,7 @@ public:
void unpack() override;
formattable_ptr format(formatter::Format format) override;
unsigned long kwh = 0;
unsigned long wh = 0;
};
class YearGenerated : public TotalGenerated {