Skip to content
Snippets Groups Projects
Commit 80fea683 authored by Armin Co's avatar Armin Co
Browse files

Enable logger.

parent 37b596db
Branches
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ struct PowerUsage
class StateLogger;
class ModelState : Subject<StateLogger, ModelState>
class ModelState : public Subject<StateLogger, ModelState>
{
public:
ModelState(SmartGridModell &modell);
......
......@@ -48,6 +48,8 @@ void run_sim()
SmartGridModell modell{i2c_device};
ModelState day{modell};
auto log = std::make_shared<StateLogger>();
day.attach(log);
MainState main_state {MainState::Simulation};
SimState sim_state {SimState::Entry};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment