@@ -123,12 +123,12 @@ def cell_voltage(self):
123
123
def cell_percent (self ):
124
124
"""Returns percentage of cell capacity"""
125
125
return self ._read_word (LC709203F_CMD_CELLITE ) / 10
126
-
126
+
127
127
@property
128
128
def cell_temperature (self ):
129
129
"""Returns the temperature of the cell"""
130
130
return self ._read_word (LC709203F_CMD_CELLTEMPERATURE ) / 10 - 273.15
131
-
131
+
132
132
@cell_temperature .setter
133
133
def cell_temperature (self , value ):
134
134
"""Sets the temperature in the LC709203F"""
@@ -173,28 +173,28 @@ def pack_size(self, size):
173
173
if not PackSize .is_valid (size ):
174
174
raise AttributeError ("pack_size must be a PackSize" )
175
175
self ._write_word (LC709203F_CMD_APA , size )
176
-
176
+
177
177
@property
178
178
def thermistor_bconstant (self ):
179
179
"""Returns the thermistor B-constant"""
180
180
return self ._read_word (LC709203F_CMD_THERMISTORB )
181
-
181
+
182
182
@thermistor_bconstant .setter
183
- def thermistor_bconstant (self ,bconstant ):
183
+ def thermistor_bconstant (self , bconstant ):
184
184
"""Sets the thermistor B-constant"""
185
185
self ._write_word (LC709203F_CMD_THERMISTORB , bconstant )
186
-
186
+
187
187
@property
188
188
def thermistor_enable (self ):
189
189
"""Returns the current temperature source"""
190
190
return self ._read_word (LC709203F_CMD_STATUSBIT )
191
-
191
+
192
192
@thermistor_enable .setter
193
- def thermistor_enable (self ,status ):
193
+ def thermistor_enable (self , status ):
194
194
"""Sets the temperature source to Tsense"""
195
195
if not status in (True , False ):
196
196
raise AttributeError ("thermistor_enable must be True or False" )
197
- self ._write_word (LC709203F_CMD_STATUSBIT ,status )
197
+ self ._write_word (LC709203F_CMD_STATUSBIT , status )
198
198
199
199
# pylint: disable=no-self-use
200
200
def _generate_crc (self , data ):
0 commit comments