summaryrefslogtreecommitdiffstats
path: root/control/fan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'control/fan.cpp')
-rw-r--r--control/fan.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/control/fan.cpp b/control/fan.cpp
index c86186f..50d1469 100644
--- a/control/fan.cpp
+++ b/control/fan.cpp
@@ -1,5 +1,6 @@
/**
* Copyright © 2017 IBM Corporation
+ * Copyright © 2017-2018 Raptor Engineering, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -89,6 +90,15 @@ void Fan::setSpeed(uint64_t speed)
_targetSpeed = speed;
}
+void Fan::disableRotor()
+{
+ // TODO
+ // This should set the enable value of the hwmon PWM entry
+ // For now, just set the fan speed to 0
+
+ setSpeed(0);
+}
+
}
}
}
OpenPOWER on IntegriCloud