diff --git a/scd30.go b/scd30.go index 5ccb58e..17e1fe7 100644 --- a/scd30.go +++ b/scd30.go @@ -146,6 +146,13 @@ func (dev SCD30) SetAutomaticSelfCalibration(value uint16) error { return dev.sendCommandArg(0x5306, value) } +// SetForcedCalibration, co2 ppm +func (dev SCD30) SetForcedCalibration(value uint16) error { + mutex.Lock() + defer mutex.Unlock() + return dev.sendCommandArg(0x5204, value) +} + func (dev SCD30) readData(len int) ([]byte, error) { data := make([]byte, len)