Create empty action groups
This introduces the framework for set speed events to have the groups
within an event assign directly on the event action. When a group is
defined directly to an action, it will be used in place of the group(s)
on the event. This allows a single event, driven by trigger(s), to call
multiple actions on different groups with differing parameters to those
actions.
Change-Id: I5c648d912641b3006a77eab27457e3ddb220c2ad
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/gen-fan-zone-defs.py b/control/gen-fan-zone-defs.py
index a6c34b6..f422522 100755
--- a/control/gen-fan-zone-defs.py
+++ b/control/gen-fan-zone-defs.py
@@ -148,6 +148,7 @@
e += "},\n"
e += "},\n"
+ e += "{Group{},\n"
e += "std::vector<Action>{\n"
for a in event['action']:
if len(a['parameters']) != 0:
@@ -160,7 +161,7 @@
else:
e += p + ")\n"
e += "),\n"
- e += "},\n"
+ e += "}},\n"
e += "std::vector<Trigger>{\n"
if ('timer' in event['triggers']) and \