File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -211,11 +211,7 @@ def self_test(self) -> None:
211
211
raise RuntimeError ("Self test failed" )
212
212
213
213
def _read_data (self ) -> None :
214
- """Reads the temp/hum/co2 from the sensor and caches it.
215
- Equations used for calculation:
216
- CO2 = word[0]
217
- T = -45 + 175 * (word[1] / (2**16 - 1))
218
- RH = 100 * (word[2] / (2**16 - 1))"""
214
+ """Reads the temp/hum/co2 from the sensor and caches it"""
219
215
self ._send_command (_SCD4X_READMEASUREMENT , cmd_delay = 0.001 )
220
216
self ._read_reply (self ._buffer , 9 )
221
217
self ._co2 = (self ._buffer [0 ] << 8 ) | self ._buffer [1 ]
@@ -290,8 +286,6 @@ def temperature_offset(self) -> float:
290
286
"""Specifies the offset to be added to the reported measurements to account for a bias in
291
287
the measured signal. Value is in degrees Celsius with a resolution of 0.01 degrees and a
292
288
maximum value of 374 C.
293
- Equation used for calculation:
294
- T_offset = word[0] * (175 / (2**16 - 1))
295
289
296
290
.. note::
297
291
This value will NOT be saved and will be reset on boot unless saved with
You can’t perform that action at this time.
0 commit comments