Skip to content

Commit 64e1176

Browse files
committed
Remove docstring equations
1 parent 7159f2c commit 64e1176

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

adafruit_scd4x.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,7 @@ def self_test(self) -> None:
211211
raise RuntimeError("Self test failed")
212212

213213
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"""
219215
self._send_command(_SCD4X_READMEASUREMENT, cmd_delay=0.001)
220216
self._read_reply(self._buffer, 9)
221217
self._co2 = (self._buffer[0] << 8) | self._buffer[1]
@@ -290,8 +286,6 @@ def temperature_offset(self) -> float:
290286
"""Specifies the offset to be added to the reported measurements to account for a bias in
291287
the measured signal. Value is in degrees Celsius with a resolution of 0.01 degrees and a
292288
maximum value of 374 C.
293-
Equation used for calculation:
294-
T_offset = word[0] * (175 / (2**16 - 1))
295289
296290
.. note::
297291
This value will NOT be saved and will be reset on boot unless saved with

0 commit comments

Comments
 (0)