File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -143,22 +143,22 @@ def _update_data(self):
143
143
i2c .write (buf , end = 1 , stop = False )
144
144
i2c .readinto (buf , start = 1 )
145
145
146
- self ._eCO2 = (buf [1 ] << 8 ) | (buf [2 ])
147
- self ._TVOC = (buf [3 ] << 8 ) | (buf [4 ])
146
+ self ._eco2 = (buf [1 ] << 8 ) | (buf [2 ])
147
+ self ._tvoc = (buf [3 ] << 8 ) | (buf [4 ])
148
148
149
149
if self .error :
150
150
raise RuntimeError ("Error:" + str (self .error_code ))
151
151
152
152
@property
153
- def TVOC (self ): # pylint: disable=invalid-name
153
+ def tvoc (self ): # pylint: disable=invalid-name
154
154
"""Total Volatile Organic Compound in parts per billion."""
155
155
self ._update_data ()
156
- return self ._TVOC
156
+ return self ._tvoc
157
157
158
158
@property
159
- def eCO2 (self ): # pylint: disable=invalid-name
159
+ def eco2 (self ): # pylint: disable=invalid-name
160
160
"""Equivalent Carbon Dioxide in parts per million. Clipped to 400 to 8192ppm."""
161
- return self ._eCO2
161
+ return self ._eco2
162
162
163
163
@property
164
164
def temperature (self ):
You can’t perform that action at this time.
0 commit comments