summaryrefslogtreecommitdiffstats
path: root/control/gen-fan-zone-defs.py
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-10-30 18:30:36 -0700
committerWilliam A. Kennington III <wak@google.com>2018-10-31 12:28:27 -0700
commit0ce353ec8de4cd7b7dc48474b0c0ff8894816316 (patch)
tree6f3b3ac451cc21fd2e2fd3ef8028dcaf3866433a /control/gen-fan-zone-defs.py
parent1cfc2f11b13412a15f8478cebc35e50e6feb13a2 (diff)
downloadphosphor-fan-presence-0ce353ec8de4cd7b7dc48474b0c0ff8894816316.tar.gz
phosphor-fan-presence-0ce353ec8de4cd7b7dc48474b0c0ff8894816316.zip
control: Alias TimerType locally
This is needed for a future commit that removes the local phosphor::util::Timer implementation. Tested: Built and run through unit tests. Change-Id: I8ea3399fec8761055d4a0d94fb9ea91fd34040ea Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'control/gen-fan-zone-defs.py')
-rwxr-xr-xcontrol/gen-fan-zone-defs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/control/gen-fan-zone-defs.py b/control/gen-fan-zone-defs.py
index e5aa39b..0ddfb63 100755
--- a/control/gen-fan-zone-defs.py
+++ b/control/gen-fan-zone-defs.py
@@ -127,7 +127,7 @@ def getActions(edata, actions, events):
param = (
"Timer{static_cast<std::chrono::seconds>(" +
str(eActions[p]['delay']) + "), " +
- "util::Timer::TimerType::" +
+ "TimerType::" +
str(eActions[p]['type']) + "}")
else:
param += (str(eActions[p]['type']).lower() + ">(")
@@ -257,7 +257,7 @@ def getEvent(zone_num, zone_conditions, e, events_data):
else:
timer['interval'] = (interval +
"(" + str(0) + ")")
- timer['type'] = "util::Timer::TimerType::repeating"
+ timer['type'] = "TimerType::repeating"
event['timer'] = timer
return event
@@ -409,7 +409,7 @@ def addPrecondition(zNum, zCond, event, events_data):
else:
timer['interval'] = (interval +
"(" + str(0) + ")")
- timer['type'] = "util::Timer::TimerType::repeating"
+ timer['type'] = "TimerType::repeating"
precond['pctime'] = timer
return precond
OpenPOWER on IntegriCloud