Skip to content

Commit

Permalink
revert changes within EnergyManager that accidentally got in while re…
Browse files Browse the repository at this point in the history
…basing

Signed-off-by: Piet Gömpel <pietgoempel@gmail.com>
  • Loading branch information
Pietfried committed Oct 15, 2024
1 parent 1bd2764 commit b2d33cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/EnergyManager/Market.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ Market::Market(types::energy::EnergyFlowRequest& _energy_flow_request, const flo

// Recursion: create one Market for each child
for (auto& flow_child : _energy_flow_request.children) {
_children.emplace_back(std::make_unique<Market>(flow_child, _nominal_ac_voltage, this));
_children.emplace_back(flow_child, _nominal_ac_voltage, this);
}
}

Expand All @@ -267,7 +267,7 @@ void Market::get_list_of_evses(std::vector<Market*>& list) {
}

for (auto& child : _children) {
child->get_list_of_evses(list);
child.get_list_of_evses(list);
}
}

Expand All @@ -278,7 +278,7 @@ std::vector<Market*> Market::get_list_of_evses() {
}

for (auto& child : _children) {
child->get_list_of_evses(list);
child.get_list_of_evses(list);
}
return list;
}
Expand Down

0 comments on commit b2d33cf

Please sign in to comment.