From 6965520998acd9f83eedc5f07faaa2621749b44a Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 23 Apr 2019 11:19:18 +0200 Subject: [PATCH] ebm: fix config tests --- etc/examples/hooks/ebm.conf | 6 ++++++ lib/hooks/ebm.cpp | 2 ++ 2 files changed, 8 insertions(+) diff --git a/etc/examples/hooks/ebm.conf b/etc/examples/hooks/ebm.conf index 6c268dfea..61de4d024 100644 --- a/etc/examples/hooks/ebm.conf +++ b/etc/examples/hooks/ebm.conf @@ -8,6 +8,12 @@ paths = ( hooks = ( { type = "ebm" + + phases = ( + [ 0, 1 ], + [ 2, 3 ], + [ 4, 5 ] + ) } ) } diff --git a/lib/hooks/ebm.cpp b/lib/hooks/ebm.cpp index 4f35131f0..bc2075c39 100644 --- a/lib/hooks/ebm.cpp +++ b/lib/hooks/ebm.cpp @@ -74,6 +74,8 @@ public: phases.emplace_back(voltage, current); } + + state = STATE_PARSED; } virtual void start()