summaryrefslogtreecommitdiffstats
path: root/control/zone.cpp
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/zone.cpp
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/zone.cpp')
-rw-r--r--control/zone.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/control/zone.cpp b/control/zone.cpp
index 0050899..11246db 100644
--- a/control/zone.cpp
+++ b/control/zone.cpp
@@ -73,8 +73,7 @@ Zone::Zone(Mode mode,
// Start timer for fan speed decreases
if (!_decTimer.running() && _decInterval != seconds::zero())
{
- _decTimer.start(_decInterval,
- util::Timer::TimerType::repeating);
+ _decTimer.start(_decInterval, TimerType::repeating);
}
}
}
@@ -245,8 +244,7 @@ void Zone::requestSpeedIncrease(uint64_t targetDelta)
}
setSpeed(requestTarget);
// Start timer countdown for fan speed increase
- _incTimer.start(_incDelay,
- util::Timer::TimerType::oneshot);
+ _incTimer.start(_incDelay, TimerType::oneshot);
}
}
OpenPOWER on IntegriCloud