diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-05-16 02:23:14 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-05-16 02:23:14 +0300 |
commit | 79251b1c29b3fe90f12e51eb03c42167a5d41cda (patch) | |
tree | feff4d14230a0dd0dc606cd562c51d2359fdec71 /src | |
parent | a398da43f874bdcb891580204225d7a0a720b54c (diff) |
p18/response/TotalGenerated: kwh -> wh
Diffstat (limited to 'src')
-rw-r--r-- | src/p18/response.cc | 4 | ||||
-rw-r--r-- | src/p18/response.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/p18/response.cc b/src/p18/response.cc index fa3693b..742ce9d 100644 --- a/src/p18/response.cc +++ b/src/p18/response.cc @@ -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) }); } diff --git a/src/p18/response.h b/src/p18/response.h index 9dfebb1..7c40bdb 100644 --- a/src/p18/response.h +++ b/src/p18/response.h @@ -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 { |