Update i2c.go

We have to reset i2cDriverInitialized, to initialize the driver correct, after closing it
This commit is contained in:
Cruiser79 2017-02-21 07:53:59 +01:00 committed by GitHub
parent adc3d47305
commit 1c4f3e94cb
1 changed files with 1 additions and 0 deletions

1
i2c.go
View File

@ -66,6 +66,7 @@ func InitI2C() error {
// CloseI2C releases resources associated with the I2C driver.
func CloseI2C() error {
i2cDriverInitialized = false
return i2cDriverInstance.Close()
}