Preconditions use signal triggers
Merge precondition events to use the same signal trigger generation
function.
Tested:
Generated code remains unchanged
Change-Id: I4c3e9df2567a0f4290ddeba2bf76aecbfb674dea
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/templates/fan_zone_defs.mako.cpp b/control/templates/fan_zone_defs.mako.cpp
index e05d1fc..a4ba615 100644
--- a/control/templates/fan_zone_defs.mako.cpp
+++ b/control/templates/fan_zone_defs.mako.cpp
@@ -160,7 +160,7 @@
${event['pc']['pctime']['type']}
},
std::vector<Signal>{
- %for s in event['pc']['pcsigs']:
+ %for s in event['pc']['triggers']['pcsigs']:
Signal{
%if ('match' in s) and \
(s['match'] is not None):