adafruit / Adafruit_CircuitPython_SCD30

Helper library for the SCD30 e-CO2 sensor
MIT License
15 stars 10 forks source link

typo in example code #8

Closed DonBower closed 3 years ago

DonBower commented 3 years ago

This line fails:

print("CO2:", scd.CO2, "PPM")

it should read:

print("CO2:", scd.eCO2, "PPM")
tannewt commented 3 years ago

Hi @DonBower, the field was just changed to CO2 because it's an actual measurement of CO2 instead of estimated. Please make sure you have the latest library version to match the example code.

DonBower commented 3 years ago

Interesting. I ran the sudo pip3 install adafruit-circuitpython-scd30 command about less than an hour before I made the comment.

tannewt commented 3 years ago

@DonBower Did you get the example from here? We may have updated here without releasing. (I released 2.0.0 right after replying to you yesterday.)

DonBower commented 3 years ago

yea, once i did a pip3 --upgrade, it came back with .CO2, not .eCO2. I think we just must have passed in the mail.