call i2c_disable(); when error occured or transfer is done to prevent accidental i2c behavior