diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-08-31 17:43:05 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-08-31 17:43:05 +0300 |
commit | 750297157d8c21f67eb57a1afe30286c1571eb12 (patch) | |
tree | a6de7417a6e26ad6781b41ed0c8bb06f9f4ef47b | |
parent | d86ca1e596b094cba101e0e3e6c8cdb71f8116e9 (diff) |
p18/get-rated: fix output_source_priority return type
-rw-r--r-- | src/p18/response.cc | 2 | ||||
-rw-r--r-- | src/p18/response.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/p18/response.cc b/src/p18/response.cc index e2cd9f4..2a3f78c 100644 --- a/src/p18/response.cc +++ b/src/p18/response.cc @@ -294,7 +294,7 @@ void RatedInformation::unpack() { max_ac_charging_current = stou(list[14]); max_charging_current = stou(list[15]); input_voltage_range = static_cast<InputVoltageRange>(stou(list[16])); - output_source_priority = static_cast<OutputModelSetting>(stou(list[17])); + output_source_priority = static_cast<OutputSourcePriority>(stou(list[17])); charger_source_priority = static_cast<ChargerSourcePriority>(stou(list[18])); parallel_max_num = stou(list[19]); machine_type = static_cast<MachineType>(stou(list[20])); diff --git a/src/p18/response.h b/src/p18/response.h index 3ffc6d4..3f92af0 100644 --- a/src/p18/response.h +++ b/src/p18/response.h @@ -292,7 +292,7 @@ public: unsigned max_ac_charging_current; /* unit: A */ unsigned max_charging_current; /* unit: A */ p18::InputVoltageRange input_voltage_range; - p18::OutputModelSetting output_source_priority; + p18::OutputSourcePriority output_source_priority; p18::ChargerSourcePriority charger_source_priority; unsigned parallel_max_num; p18::MachineType machine_type; |