From 750297157d8c21f67eb57a1afe30286c1571eb12 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 31 Aug 2022 17:43:05 +0300 Subject: p18/get-rated: fix output_source_priority return type --- src/p18/response.cc | 2 +- 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(stou(list[16])); - output_source_priority = static_cast(stou(list[17])); + output_source_priority = static_cast(stou(list[17])); charger_source_priority = static_cast(stou(list[18])); parallel_max_num = stou(list[19]); machine_type = static_cast(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; -- cgit v1.2.3