mirror of https://github.com/kidoman/embd
Update i2c.go
We have to reset i2cDriverInitialized, to initialize the driver correct, after closing it
This commit is contained in:
parent
adc3d47305
commit
1c4f3e94cb
1
i2c.go
1
i2c.go
|
@ -66,6 +66,7 @@ func InitI2C() error {
|
||||||
|
|
||||||
// CloseI2C releases resources associated with the I2C driver.
|
// CloseI2C releases resources associated with the I2C driver.
|
||||||
func CloseI2C() error {
|
func CloseI2C() error {
|
||||||
|
i2cDriverInitialized = false
|
||||||
return i2cDriverInstance.Close()
|
return i2cDriverInstance.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue