Skip to content

Commit d5041d8

Browse files
committed
mentioned non-volitile storage for relevant properties
1 parent 983394e commit d5041d8

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

adafruit_scd30.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ def reset(self):
8080

8181
@property
8282
def measurement_interval(self):
83-
"""Sets the interval between readings in seconds. The interval value must be from 2-1800"""
83+
"""Sets the interval between readings in seconds. The interval value must be from 2-1800
84+
85+
**NOTE** This value will be saved and will not be reset on boot."""
8486

8587
return self._read_register(_CMD_SET_MEASUREMENT_INTERVAL)
8688

@@ -96,8 +98,11 @@ def self_calibration_enabled(self):
9698
be on and active for 7 days after enabling ASC, and exposed to fresh air for at least 1 hour
9799
per day. Consult the manufacturer's documentation for more information.
98100
99-
´**NOTE**: Enabling self calibration will override any values set by specifying a
100-
`forced_recalibration_reference`"""
101+
**NOTE**: Enabling self calibration will override any values set by specifying a
102+
`forced_recalibration_reference`
103+
104+
**NOTE** This setting will be saved and will not be reset on boot."""
105+
101106
return self._read_register(_CMD_AUTOMATIC_SELF_CALIBRATION) == 1
102107

103108
@self_calibration_enabled.setter
@@ -126,7 +131,9 @@ def ambient_pressure(self, pressure_mbar):
126131
def altitude(self):
127132
"""Specifies the altitude at the measurement location in meters above sea level. Setting
128133
this value adjusts the CO2 measurement calculations to account for the air pressure's effect
129-
on readings"""
134+
on readings.
135+
136+
**NOTE** This value will be stored and will not be reset on boot."""
130137
return self._read_register(_CMD_SET_ALTITUDE_COMPENSATION)
131138

132139
@altitude.setter
@@ -137,7 +144,10 @@ def altitude(self, altitude):
137144
def temperature_offset(self):
138145
"""Specifies the offset to be added to the reported measurements to account for a bias in
139146
the measured signal. Value is in degrees C with a resolution of 0.01 degrees and a maximum
140-
value of 655.35"""
147+
value of 655.35
148+
149+
**NOTE** This value will be saved and will not be reset on boot."""
150+
141151
raw_offset = self._read_register(_CMD_SET_TEMPERATURE_OFFSET)
142152
return raw_offset / 100.0
143153

0 commit comments

Comments
 (0)