agners / micropython-scd30

MicroPython I2C driver for SCD30 CO2 sensor module
MIT License
24 stars 15 forks source link

Possible bug in set_automatic_recalibration #5

Open juergberinger opened 3 years ago

juergberinger commented 3 years ago

Line 119 in scd30.py in set_automatic_recalibration currently has

        self.i2c.writeto_mem(self.addr, self.SET_FRC, data, addrsize=16)

Based on the SCD30 interface description, shouldn't this be

        self.i2c.writeto_mem(self.addr, self.SET_ASC, data, addrsize=16)

i.e. writing SET_ASC (0x5306) instead of SET_FRC (0x5204)?