99
1010# Parameters for the current() function, to specify which current to read
1111# current_measure types
12- class CurrentMeasureType :
12+ class CurrentMeasureType ( object ) :
1313 AVG = 0 # Average Current (DEFAULT)
1414 STBY = 1 # Standby Current
1515 MAX = 2 # Max Current
@@ -19,7 +19,7 @@ def __init__(self, value):
1919
2020
2121# Parameters for the capacity() function, to specify which capacity to read
22- class CapacityMeasureType :
22+ class CapacityMeasureType ( object ) :
2323 REMAIN = 0 # Remaining Capacity (DEFAULT)
2424 FULL = 1 # Full Capacity
2525 AVAIL = 2 # Available Capacity
@@ -35,7 +35,7 @@ def __init__(self, value):
3535
3636
3737# Parameters for the soc() function
38- class SocMeasureType :
38+ class SocMeasureType ( object ) :
3939 FILTERED = 0 # State of Charge Filtered (DEFAULT)
4040 UNFILTERED = 1 # State of Charge Unfiltered
4141
@@ -44,7 +44,7 @@ def __init__(self, value):
4444
4545
4646# Parameters for the soh() function
47- class SohMeasureType :
47+ class SohMeasureType ( object ) :
4848 PERCENT = 0 # State of Health Percentage (DEFAULT)
4949 SOH_STAT = 1 # State of Health Status Bits
5050
@@ -53,7 +53,7 @@ def __init__(self, value):
5353
5454
5555# Parameters for the temperature() function
56- class TempMeasureType :
56+ class TempMeasureType ( object ) :
5757 BATTERY = 0 # Battery Temperature (DEFAULT)
5858 INTERNAL_TEMP = 1 # Internal IC Temperature
5959
@@ -62,15 +62,15 @@ def __init__(self, value):
6262
6363
6464# Parameters for the setGPOUTFunction() funciton
65- class GpoutFunctionType :
65+ class GpoutFunctionType ( object ) :
6666 SOC_INT = 0 # Set GPOUT to SOC_INT functionality
6767 BAT_LOW = 1 # Set GPOUT to BAT_LOW functionality
6868
6969 def __init__ (self , value ):
7070 self .value = value
7171
7272
73- class BQ27441 :
73+ class BQ27441 ( object ) :
7474 """BQ27441 class contains all major and minor functions use to read and control
7575 the fuel gauge ic"""
7676
0 commit comments