Increase boot count for SBE side switch

The host gets one additional boot try when switching
over to the alternate SBE seeprom side

Change-Id: Ia692fffdb6720a1b80d9cf2c9cdc279acf84efe5
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
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 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):