@@ -87,8 +87,8 @@ class SCD30:
87
87
88
88
def __init__ (self , i2c_bus , ambient_pressure = 0 , address = SCD30_DEFAULT_ADDR ):
89
89
if ambient_pressure != 0 :
90
- if ambient_pressure < 700 or ambient_pressure > 1200 :
91
- raise AttributeError ("`ambient_pressure` must be from 700-1200 mBar" )
90
+ if ambient_pressure < 700 or ambient_pressure > 1400 :
91
+ raise AttributeError ("`ambient_pressure` must be from 700-1400 mBar" )
92
92
93
93
self .i2c_device = i2c_device .I2CDevice (i2c_bus , address )
94
94
self ._buffer = bytearray (18 )
@@ -158,14 +158,14 @@ def data_available(self):
158
158
def ambient_pressure (self ):
159
159
"""Specifies the ambient air pressure at the measurement location in mBar. Setting this
160
160
value adjusts the CO2 measurement calculations to account for the air pressure's effect on
161
- readings. Values must be in mBar, from 700 to 1200 mBar"""
161
+ readings. Values must be in mBar, from 700 to 1400 mBar"""
162
162
return self ._read_register (_CMD_CONTINUOUS_MEASUREMENT )
163
163
164
164
@ambient_pressure .setter
165
165
def ambient_pressure (self , pressure_mbar ):
166
166
pressure_mbar = int (pressure_mbar )
167
- if pressure_mbar != 0 and (pressure_mbar > 1200 or pressure_mbar < 700 ):
168
- raise AttributeError ("ambient_pressure must be from 700 to 1200 mBar" )
167
+ if pressure_mbar != 0 and (pressure_mbar > 1400 or pressure_mbar < 700 ):
168
+ raise AttributeError ("ambient_pressure must be from 700 to 1400 mBar" )
169
169
self ._send_command (_CMD_CONTINUOUS_MEASUREMENT , pressure_mbar )
170
170
171
171
@property
0 commit comments