p18/response/TotalGenerated: kwh -> wh
This commit is contained in:
parent
a398da43f8
commit
79251b1c29
@ -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)
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user