We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06b4da0 commit fbaca15Copy full SHA for fbaca15
adafruit_scd30.py
@@ -123,6 +123,7 @@ def ambient_pressure(self):
123
124
@ambient_pressure.setter
125
def ambient_pressure(self, pressure_mbar):
126
+ pressure_mbar = int(pressure_mbar)
127
if pressure_mbar != 0 and (pressure_mbar > 1200 or pressure_mbar < 700):
128
raise AttributeError("ambient_pressure must be from 700 to 1200 mBar")
129
self._send_command(_CMD_CONTINUOUS_MEASUREMENT, pressure_mbar)
0 commit comments