Skip to content

Commit

Permalink
clang-format fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Lukas <[email protected]>
  • Loading branch information
SebaLukas committed Sep 11, 2024
1 parent 949af16 commit 9fe04b7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/Evse15118D20/Evse15118D20.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Evse15118D20 : public Everest::ModuleBase {
public:
Evse15118D20() = delete;
Evse15118D20(const ModuleInfo& info, std::unique_ptr<ISO15118_chargerImplBase> p_charger, Conf& config) :
ModuleBase(info), p_charger(std::move(p_charger)), config(config) {};
ModuleBase(info), p_charger(std::move(p_charger)), config(config){};

const std::unique_ptr<ISO15118_chargerImplBase> p_charger;
const Conf& config;
Expand Down
2 changes: 1 addition & 1 deletion modules/Evse15118D20/charger/ISO15118_chargerImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ISO15118_chargerImpl : public ISO15118_chargerImplBase {
public:
ISO15118_chargerImpl() = delete;
ISO15118_chargerImpl(Everest::ModuleAdapter* ev, const Everest::PtrContainer<Evse15118D20>& mod, Conf& config) :
ISO15118_chargerImplBase(ev, "charger"), mod(mod), config(config) {};
ISO15118_chargerImplBase(ev, "charger"), mod(mod), config(config){};

// ev@8ea32d28-373f-4c90-ae5e-b4fcc74e2a61:v1
// insert your public definitions here
Expand Down
3 changes: 2 additions & 1 deletion modules/EvseManager/EvseManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,8 @@ void EvseManager::setup_v2h_mode() {
powersupply_capabilities.min_import_voltage_V.has_value()) {
evse_min_limits.evse_minimum_current_limit = -powersupply_capabilities.min_import_current_A.value();
evse_min_limits.evse_minimum_voltage_limit = powersupply_capabilities.min_import_voltage_V.value();
evse_min_limits.evse_minimum_power_limit = evse_min_limits.evse_minimum_current_limit * evse_min_limits.evse_minimum_voltage_limit;
evse_min_limits.evse_minimum_power_limit =
evse_min_limits.evse_minimum_current_limit * evse_min_limits.evse_minimum_voltage_limit;
r_hlc[0]->call_update_dc_minimum_limits(evse_min_limits);
} else {
EVLOG_error << "No Import Current, Power or Voltage is available!!!";
Expand Down
3 changes: 2 additions & 1 deletion modules/EvseManager/EvseManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ class EvseManager : public Everest::ModuleBase {
types::iso15118_charger::DcEvseMinimumLimits evse_min_limits;
evse_min_limits.evse_minimum_current_limit = powersupply_capabilities.min_export_current_A;
evse_min_limits.evse_minimum_voltage_limit = powersupply_capabilities.min_export_voltage_V;
evse_min_limits.evse_minimum_power_limit = evse_min_limits.evse_minimum_current_limit * evse_min_limits.evse_minimum_voltage_limit;
evse_min_limits.evse_minimum_power_limit =
evse_min_limits.evse_minimum_current_limit * evse_min_limits.evse_minimum_voltage_limit;
r_hlc[0]->call_update_dc_minimum_limits(evse_min_limits);

// HLC layer will also get new maximum current/voltage/watt limits etc, but those will need to run through
Expand Down

0 comments on commit 9fe04b7

Please sign in to comment.