summaryrefslogtreecommitdiffstats
path: root/obmc
diff options
context:
space:
mode:
Diffstat (limited to 'obmc')
-rw-r--r--obmc/sensors.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/obmc/sensors.py b/obmc/sensors.py
index f34c711..8e21a6e 100644
--- a/obmc/sensors.py
+++ b/obmc/sensors.py
@@ -272,7 +272,16 @@ class OccStatusSensor(VirtualSensor):
class BootCountSensor(VirtualSensor):
def __init__(self, bus, name):
VirtualSensor.__init__(self, bus, name)
- self.setValue(2)
+ # Default boot count is 2. Add 1 onto this to allow for an
+ # SBE side switch boot attempt
+ self.setValue(3)
+
+ ## override setValue method for debug purposes
+ @dbus.service.method(
+ SensorValue.IFACE_NAME, in_signature='v', out_signature='')
+ def setValue(self, value):
+ print "Setting boot count to " + str(value)
+ SensorValue.setValue(self,value)
class OperatingSystemStatusSensor(VirtualSensor):
OpenPOWER on IntegriCloud