diff options
Diffstat (limited to 'src/p18')
-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 { |